public void StartTreeView(TicTacTree pTicTacTree) { ticTacTree = pTicTacTree; parentRect = GetComponent <RectTransform>(); parentText = GetComponentInChildren <Text>(); UpdateTreeView(); }
public void StartGame() { ticTacToe = new TicTacToe(); botTree = new TicTacTree(!cbFirstPlayer.isOn); botTurn = !cbFirstPlayer.isOn; treeView.StartTreeView(botTree); PrepareBoard(); foreach (Animator line in winLines) { line.SetBool("Line", false); } if (botTurn && cbAutoPlay.isOn) { StartCoroutine(BotMoveWithDelay()); } btnNextMove.interactable = (!cbAutoPlay.isOn && botTurn); }