// Use this for initialization void Start() { guiStateChanged += guiStateChangedHandlerFunction; //ingameMenu.SetActive(false); //DisableAll(); gs = guistate.LoadOrCreateMapMenu; }
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); } }
public void CreateMapButton() { gs = guistate.MapNameMenu; //GetComponent<PhotonManager>().ConnectPlayer(); }