Пример #1
0
 private bool ModifyScreen(GameLayer screen, bool newActive)
 {
     if (newActive)
     {
         screen.Added();
     }
     else
     {
         screen.Removed();
     }
     screen.SetActive(newActive);
     InitializeWaitingLayers();
     return(true);
 }
Пример #2
0
 private bool ModifyScreen(GameLayer screen, bool newActive)
 {
     if (newActive) {
         screen.Added();
     } else {
         screen.Removed();
     }
     screen.SetActive(newActive);
     InitializeWaitingLayers();
     return true;
 }