UnityAppController.h修改

inline UnityAppController*GetAppController()

{

return (UnityAppController*)[UIApplication sharedApplication].delegate;

}

替换

#import"AppDelegate.h"

inlineUnityAppController*GetAppController()

{

AppDelegate*delegate = (AppDelegate*)[UIApplicationsharedApplication].delegate;

returndelegate.unityController;

}

你可能感兴趣的:(UnityAppController.h修改)