Beispiel #1
0
 private void Screen_OnWindowEnableEvent(bool flag, Screens.Screen screen)
 {
     if (flag && screen is MainScreen)
     {
         StartCoroutine(SetPosition(mainScreenPosition));
     }
 }
Beispiel #2
0
 private void Screen_OnWindowEnableEvent(bool flag, Screens.Screen screen)
 {
     if (flag)
     {
         foreach (var item in GameScreens)
         {
             if (item != screen)
             {
                 item.gameObject.SetActive(false);
             }
         }
     }
 }