Unity和iOS交互

extern "C" void PrivacyPolicy(){

}

extern "C" int GetNetState(){
return 0;
}

extern "C" const char * GetVerName(){
NSDictionary *infos = [[NSBundle mainBundle] infoDictionary];
NSString *version = [infos objectForKey:@"CFBundleShortVersionString"];
return strdup([version UTF8String]);;
}

你可能感兴趣的:(Unity和iOS交互)