Files
MergeGangRush_unity_IOS/Assets/Plugins/iOS/pluginIOs.mm
T
2026-07-13 18:14:23 +08:00

24 lines
714 B
Plaintext

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];
}
}