예제 #1
0
        public void ChangeScreen(ScreenData screenData)
        {
            CurrentScreen = screenData;
            SceneManager.LoadScene(screenData.name);
            var loadScreenEvent = (GameEvent)Resources.Load($"Global/Screens/Event/Load{screenData.name}");

            loadScreenEvent.Raise();
        }
예제 #2
0
 private void OnEnable()
 {
     NextScreen    = _startNextScreen;
     CurrentScreen = _startCurrentScreen;
 }