public static void CopyLocal() { plat = SDKPlatform.LOCAL; GetConfig(SDKPlatform.LOCAL.GetHashCode()); callBack = delegate() { DirectoryInfo androidFolder = new DirectoryInfo("Assets/Plugins/Android"); if (androidFolder.Exists) { androidFolder.Delete(true); } SetConfig(SDKPlatform.LOCAL.GetHashCode()); PlayerSettings.keystorePass = "******"; PlayerSettings.keyaliasPass = "******"; }; EditorWindow.GetWindow(typeof(SdkMgr), false, "配置本地SDK"); }
public static void CopyWeiXinAndroid() { plat = SDKPlatform.ANDROID; GetConfig(SDKPlatform.ANDROID.GetHashCode()); callBack = delegate() { DirectoryInfo sdkFolder = new DirectoryInfo("Sdk/Weixin/Android"); DirectoryInfo androidFolder = new DirectoryInfo("Assets/Plugins/Android"); if (androidFolder.Exists) { androidFolder.Delete(true); } CopyFolder(sdkFolder.FullName, new DirectoryInfo("Assets/Plugins").FullName); SetConfig(SDKPlatform.ANDROID.GetHashCode()); PlayerSettings.keystorePass = "******"; PlayerSettings.keyaliasPass = "******"; }; EditorWindow.GetWindow(typeof(SdkMgr), false, "配置微信Android"); }