IEnumerator WaitTilObjectDestroy(BaseMenuState menuState, GameObject menuStateGO)
 {
     GameObject.Destroy(menuStateGO);
     while (menuStateGO != null)
     {
         yield return(null);
     }
     SceneManager.UnloadScene(menuState.SceneName);
     Resources.UnloadUnusedAssets();
     Release();
 }
Example #2
0
 public void EnteredMenuState(BaseMenuState menuState)
 {
     MenuStateEnteredSignal.Dispatch(menuState);
 }
 public void SetupMenu(BaseMenuState menuState)
 {
     MenuState = menuState;
     SetupSceneDependentMenu();
 }
Example #4
0
 void OnMenuStateEntered(BaseMenuState menuState)
 {
     ProcessNextMenuStateSignal.Dispatch(menuState);
 }