inline UnityAppController*GetAppController()
{
return (UnityAppController*)[UIApplication sharedApplication].delegate;
}
替换
#import"AppDelegate.h"
inlineUnityAppController*GetAppController()
{
AppDelegate*delegate = (AppDelegate*)[UIApplicationsharedApplication].delegate;
returndelegate.unityController;
}