예제 #1
0
 // Use this for initialization
 void Start()
 {
     guiStateChanged += guiStateChangedHandlerFunction;
     //ingameMenu.SetActive(false);
     //DisableAll();
     gs = guistate.LoadOrCreateMapMenu;
 }
예제 #2
0
 void guiStateChangedHandlerFunction(guistate GS)
 {
     if (GS == guistate.Login)
     {
         DisableAll();
         loginSignupMenu.SetActive(true);
     }
     else if (GS == guistate.InGame)
     {
         DisableAll();
         Ingame();
     }
     else if (GS == guistate.UpdateCreepCountUI)
     {
         UpdateCreepCountUI();
     }
     else if (GS == guistate.LoadOrCreateMapMenu)
     {
         DisableAll();
         loadOrCreateMapMenu.SetActive(true);
     }
     else if (GS == guistate.SelecMapMenu)
     {
         DisableAll();
         mapSelectorMenu.SetActive(true);
     }
     else if (GS == guistate.MapNameMenu)
     {
         DisableAll();
         mapNameMenu.SetActive(true);
     }
     else if (GS == guistate.InGameLearning)
     {
         DisableAll();
         learningMainMenu.SetActive(true);
     }
 }
예제 #3
0
 public void CreateMapButton()
 {
     gs = guistate.MapNameMenu;
     //GetComponent<PhotonManager>().ConnectPlayer();
 }