void OnMouseDown() { net.statusText.text = ""; if (this.name == "menu_item_network_create") { net.input.text = ""; net.menuNet.SetActive(false); net.menuCreate2.SetActive(true); net.networkUI.SetActive(false); net.isClient = false; enterServer(); ms.seSelect(); } else if (this.name == "menu_item_network_join") { net.eFieldId.Text = net.input.text; net.input.text = ""; net.isClient = true; net.menuNet.SetActive(false); net.menuJoin.SetActive(true); net.networkUI.SetActive(true); ms.seSelect(); } else if (this.name == "menu_item_back_join") { close(); net.menuNet.SetActive(true); net.menuJoin.SetActive(false); net.networkUI.SetActive(false); net.input.text = ""; ms.seCancel(); } else if (this.name == "menu_item_back_create2") { close(); net.menuNet.SetActive(true); net.menuCreate2.SetActive(false); net.networkUI.SetActive(false); ms.seCancel(); } else if (this.name == "menu_item_enter") { enterClient(); ms.seSelect(); } else if (this.name == "menu_item_back") { GameObject.Find("NetworkMenu").SetActive(false); net.menuMain.SetActive(true); ms.seCancel(); } }
void OnMouseDown() { ms.seSelect(); this.networkMenu.SetActive(true); this.menu.SetActive(false); }