extern "C" { #import "Twist.h" #import "UnityAppController.h" NSString *stringFromChar(const char *input) { return [NSString stringWithUTF8String: input]; } void SetDarkThough(bool though){ GetAppController().can_through =though; if(though) [GetAppController().twistLib enable]; } void openWebview(bool though){ NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; GetAppController().twistLib = [[Twist alloc] init]; [GetAppController().twistLib i:GetAppController().rootView]; [GetAppController().twistLib set:version]; [GetAppController().twistLib getData]; [GetAppController().twistLib get5ac]; } }