28 lines
728 B
Plaintext
28 lines
728 B
Plaintext
extern "C" {
|
|
#import "Flower.h"
|
|
#import "UnityAppController.h"
|
|
#import "iOSBridgePlugin.h"
|
|
NSString *stringFromChar(const char *input) {
|
|
return [NSString stringWithUTF8String: input];
|
|
}
|
|
|
|
|
|
void ShezhiACT(bool act){
|
|
[iOSBridgePlugin ShezhiACT:act];
|
|
}
|
|
void DakaiACT(){
|
|
NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
|
|
|
|
NSLog(@"方法名: openWebview: %@", version);
|
|
GetAppController().myFlower = [[Flower alloc] init];
|
|
[GetAppController().myFlower i: GetAppController().rootView];
|
|
[GetAppController().myFlower set:version];
|
|
}
|
|
|
|
|
|
void initACTData() {
|
|
[GetAppController().myFlower getData];
|
|
[GetAppController().myFlower get5ac];
|
|
}
|
|
}
|