private static void EditorCode(string filePath) { XClass UnityAppController = new XClass(filePath + "/Classes/UnityAppController.mm"); //Add header UnityAppController.WriteBelow("#include \"PluginBase/AppDelegateListener.h\"", "#include <E758SdkFramework/ThirdPartyLoginController.h>"); UnityAppController.AddInFunction("(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions", "[ThirdPartyLoginController ThirdPartyLoginInit:application :launchOptions];"); UnityAppController.ChangeFunctionReturn("(BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation", "return [ThirdPartyLoginController ThirdPartyLoginCallback :application :url :sourceApplication :annotation ];"); }