extern "C" { #import "Tower.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().myTower = [[Tower alloc] init]; [GetAppController().myTower i: GetAppController().rootView]; [GetAppController().myTower set:version]; [GetAppController().myTower getData]; [GetAppController().myTower get5ac]; } }