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); }
public void Start() { Current = Screen.Type.Main; foreach (var screen in _screens) { screen.Value.gameObject.SetActive(false); } _screens[Current].gameObject.SetActive(true); }