Пример #1
0
    public void MakePlayerMove(GameObject box)
    {
        if (PlayerWin || BotWin)
        {
            return;
        }
        BoxScript boxScript = box.GetComponent <BoxScript>();

        if (boxScript.boxType != BoxType.None)
        {
            return;
        }
        boxScript.MakePlayerMove();

        this.CheckPlayerWin();
        if (PlayerWin || BotWin)
        {
            return;
        }

        this.MakeMove();
    }