Esempio n. 1
0
 protected void Awake()
 {
     sceneSwitcher = Ramses.Confactory.ConfactoryFinder.Instance.Give <ConSceneSwitcher>();
     sceneSwitcher.FullBlackEvent += OnBlackFullEvent;
     for (int i = 0; i < allContextScreens.Length; i++)
     {
         allContextScreens[i].SetContextScreen(this);
         if (allContextScreens[i].IsContextScreen(ContextScreens.MenuContext))
         {
             allContextScreens[i].OpenScreen();
         }
         else
         {
             allContextScreens[i].gameObject.SetActive(false);
         }
     }
 }
 protected void Awake()
 {
     conSceneSwitcher = ConfactoryFinder.Instance.Give <ConSceneSwitcher>();
     AddButtonEventListeners();
 }