static public void BuildAndroid() { try { EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android); BuildPlayer.Build(); } catch (System.Exception e) { Debug.LogError(e.ToString()); } }
static public void BuildWin64() { try { EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows64); BuildPlayer.Build(); } catch (System.Exception e) { Debug.LogError(e.ToString()); } }