Ejemplo n.º 1
0
    private static void LoadScene()
    {
        if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name != SceneEnums.GetSceneString(SceneEnums.SceneID.SceneInit))
        {
            UnityEditor.EditorUtility.DisplayDialog("Warning", string.Format("Please running the game from the scene with name: {0}", SceneEnums.GetSceneString(SceneEnums.SceneID.SceneInit)), "OK");
        }

        LogGame.Log("[Helper] Check the status of scene!");
    }
Ejemplo n.º 2
0
 public static LoadingManager ExecuteLoading(this MonoBehaviour mono, SceneEnums.SceneID sceneID)
 {
     return(ExecuteLoading(SceneEnums.GetSceneString(sceneID), null, null, string.Empty));
 }