Esempio n. 1
0
    private void Start()
    {
        transform.Rotate(new Vector3(180.0f, 0.0f), Space.Self);
        Piece parent = gameObject.GetComponent <Piece>();

        x       = parent.x;
        y       = parent.y;
        isWHite = parent.isWHite;
        isQueen = true;
        board   = FindObjectOfType <CheckersBoardController>();
        //arent.enabled = false;
    }
Esempio n. 2
0
 private void Start()
 {
     board   = FindObjectOfType <CheckersBoardController>();
     isQueen = false;
 }
Esempio n. 3
0
 /// <summary>
 /// Create board set player and dispaly in Ui
 /// </summary>
 public void SetupGame()
 {
     board        = Instantiate(boardPrefab, gameObject.transform.position, Quaternion.identity);
     accualPlayer = Player.One;
     DisplayTurn();
 }