public void ChangeScreen(ScreenData screenData) { CurrentScreen = screenData; SceneManager.LoadScene(screenData.name); var loadScreenEvent = (GameEvent)Resources.Load($"Global/Screens/Event/Load{screenData.name}"); loadScreenEvent.Raise(); }
private void OnEnable() { NextScreen = _startNextScreen; CurrentScreen = _startCurrentScreen; }