public void MultiplaeryBtn() { if (!isMultiplayerButtonClicked) { ipAdressInput.SetActive(true); MultiplayerBtn.PlayButtonAnimation(); SoloBtn.PlayButtonAnimation(); timeLimeIndex = 1; } else { timeLimeIndex = 3; isPlayerConnected = true; } StartCoroutine(enableMultiplayerBoolean()); }
public void ReturnBtn() { switch (timeLimeIndex) { case 0: myAnim.Play("Return0"); break; case 1: MultiplayerBtn.ReturnBtn(); SoloBtn.ReturnBtn(); isMultiplayerButtonClicked = false; ipAdressInput.SetActive(false); timeLimeIndex = 0; break; case 2: myAnim.Play("Return1"); timeLimeIndex = 0; isMultiplayerButtonClicked = false; ipAdressInput.SetActive(false); break; case 3: lobby.lobbyManager.GoBackButton(); break; default: Debug.Log("State not registred"); break; } }