Exemple #1
0
 private void Start()
 {
     uIGamePlayScreenController = UIGamePlayScreenManager.Instance();
     uIMainScreenController     = UIMainScreenManager.Instance();
     uIGamePlayGameObject       = UtilFunctions.GetChildGameObjectWithTag(MainCanvas, TagHolder.UI_GAME_PLAY_SCREEN);
     uIMainScreenGameObject     = UtilFunctions.GetChildGameObjectWithTag(MainCanvas, TagHolder.UI_MAIN_SCREEN);
     uIMainScreenController.AssignGameObject(uIMainScreenGameObject);
     Time.timeScale = 1f;
     Initiate();
 }
Exemple #2
0
 // Start is called before the first frame update
 public void Initiate()
 {
     uIGamePlayScreenController = UIGamePlayScreenManager.Instance();
     uIMainScreenController     = UIMainScreenManager.Instance();
     uILevelScreenManager       = UILevelScreenManager.Instance();
     uIGamePlayGameObject       = UtilFunctions.GetChildGameObjectWithTag(MainCanvas, TagHolder.UI_GAME_PLAY_SCREEN);
     uIMainScreenGameObject     = UtilFunctions.GetChildGameObjectWithTag(MainCanvas, TagHolder.UI_MAIN_SCREEN);
     uILevelScreenGameObject    = UtilFunctions.GetChildGameObjectWithTag(MainCanvas, TagHolder.UI_LEVEL_SCREEN);
     uIGamePlayGameObject.SetActive(false);
     uILevelScreenGameObject.SetActive(false);
     uIMainScreenGameObject.SetActive(true);
     Time.timeScale = 1f;
     uIMainScreenController.AssignGameObject(uIMainScreenGameObject);
     uIMainScreenController.Initiate();
 }