private void UpdateOnGameplay() { if (Input.GetKeyDown(KeyCode.Tab)) { playerMode = playerMode.Next(); UpdateCharacterOnModeChange(); Debug.Log("Player mode changed to " + playerMode.ToString()); } else if (Input.GetKeyDown(KeyCode.Escape)) { Debug.Log("Sudoku"); teams[activeTeam].Clear(); EndGame(); } if (currentCharacter == null) { StateToWaitForRoundStart(); return; } float stamina = currentCharacter.GetComponent <StaminaComponent>().value; if (stamina <= 0) { StateToShootTime(); } }
public void SetMode(int mode) { m_player2Mode = (PlayerMode)mode; p2ModeText.text = m_player2Mode.ToString(); }