Ejemplo n.º 1
0
    /// <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;
        }
    }
Ejemplo n.º 2
0
    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");
        }
    }
Ejemplo n.º 3
0
 public void SetPlayer(Enumerations.Player p)
 {
     currentPlayer = p;
 }
Ejemplo n.º 4
0
		public GameTarget(Enumerations.Player player, ITargetableObject target)
		{
			this.Target = target;
			this.Player = player;
		}