Exemplo n.º 1
0
 public void NamePieces()
 {
     AddKingOfColor(ColorOfPlayer.Substring(0, 1));
     AddQueenOfColor(ColorOfPlayer.Substring(0, 1));
     AddKnightsOfColor(ColorOfPlayer.Substring(0, 1));
     AddBishopsOfColor(ColorOfPlayer.Substring(0, 1));
     AddRooksOfColor(ColorOfPlayer.Substring(0, 1));
     AddPawsOfColor(ColorOfPlayer.Substring(0, 1));
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        controllerPlayerMatch = new int[4] {
            -1, -1, -1, -1
        };
        timeStamp = new float[4];

        cop = this.transform.GetComponent <ColorOfPlayer>();

        PlayerOptions.playerConfig = new PlayerConfig[4];
        for (int i = 0; i < PlayerOptions.playerConfig.Length; i++)
        {
            PlayerOptions.playerConfig[i].controller = -1;
        }
    }