Beispiel #1
0
    private void PlayerStayed(Collider other)
    {
        PlayerPoints pPoints = other.gameObject.GetComponent <PlayerPoints>();

        pPoints.playerPlaying = false;
        pPoints.IncrementScore(pointsForWinning[pPoints.turnManager.NumberOfPlayersWon()]);
        other.gameObject.SetActive(false);
        turnManager.PlayerWon(turnManager.IndexOfPlayer(other.gameObject));
        //Add the points
        //Remove the player object, activate a flag for that player having finished
        //Destroy (this.gameObject);
    }