Exemple #1
0
        static public void BuildAndroid()
        {
            try
            {
                EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android);

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

                BuildPlayer.Build();
            }
            catch (System.Exception e)
            {
                Debug.LogError(e.ToString());
            }
        }