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; }
private void Start() { board = FindObjectOfType <CheckersBoardController>(); isQueen = false; }
/// <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(); }