public void SetScreen(UIScenes scene, bool addToStack) { if (FirebaseAuthManager.instance == null) { Debug.LogError("Failed to load scene. Auth Manager not found"); return; } }
public void LoadUIScene(UIScenes uiScene) { switch (uiScene) { case UIScenes.Evaluation: if (evaluationScene != null) { SceneManager.LoadScene(evaluationScene); } break; case UIScenes.SeletScene: if (selectScene != null) { SceneManager.LoadScene(selectScene); } break; case UIScenes.TrainingScene: if (trainingScene != null) { SceneManager.LoadScene(trainingScene); } break; case UIScenes.MiniGameTest: if (miniGameTest != null) { SceneManager.LoadScene(miniGameTest); } break; case UIScenes.ResultScene: if (resultScene != null) { SceneManager.LoadScene(resultScene); } break; case UIScenes.Tutorial: if (tutorialScene != null) { SceneManager.LoadScene(tutorialScene); } break; case UIScenes.NewEvaluation: if (newEvaluation != null) { SceneManager.LoadScene(newEvaluation); } break; } }
public static void ShowUI <T> () where T : UIScenes { if (_CurrentScene != null) { _CurrentScene.gameObject.SetActive(false); } var type = typeof(T); if (_Scenes.ContainsKey(type) == false) { return; } _CurrentScene = _Scenes[type]; _CurrentScene.gameObject.SetActive(true); }
private IEnumerator DelayLoadUIScene(UIScenes uiScene, float delayTime) { yield return(new WaitForSeconds(delayTime)); LoadUIScene(uiScene); }
public void LoadUIScene(UIScenes uiScene, float delayTime) { StartCoroutine(DelayLoadUIScene(uiScene, delayTime)); }