/// <summary> /// Sets score to a player specified /// </summary> /// <param name="player"></param> /// <param name="score"></param> public void SetPlayerScore(Enumerations.Player player, float score) { switch (player) { case Enumerations.Player.Player1: SetPlayer1Score(score); break; case Enumerations.Player.Player2: SetPlayer2Score(score); break; } }
public void SetReady(Enumerations.Player player) { switch (player) { case Enumerations.Player.Player1: P1_Ready = true; break; case Enumerations.Player.Player2: P2_Ready = true; break; default: break; } if (P1_Ready && P2_Ready) { StartCoroutine("startGameCoroutine"); } }
public void SetPlayer(Enumerations.Player p) { currentPlayer = p; }
public GameTarget(Enumerations.Player player, ITargetableObject target) { this.Target = target; this.Player = player; }