Example #1
0
 public static void Show(Screen.Type screenType, params object[] args)
 {
     _screens[Current].Hide();
     _screens[Current].gameObject.SetActive(false);
     Current = screenType;
     _screens[Current].gameObject.SetActive(true);
     _screens[Current].Show(args);
 }
Example #2
0
 public void Start()
 {
     Current = Screen.Type.Main;
     foreach (var screen in _screens)
     {
         screen.Value.gameObject.SetActive(false);
     }
     _screens[Current].gameObject.SetActive(true);
 }