Ejemplo n.º 1
0
    void StoneStoped()
    {
        _TouchBlocking.SetActive(false);
        _Shooted = false;
        _GameMng.CheckStoneOutOfBoard();
        _GameMng.TurnChange();
        _ShootSlotsGroup_My.SetActive(false);
        _ShootLostsGroup_MyArrows.SetActive(false);
        _ShootSlotsGroup_Enemy.SetActive(true);
        _GameMng.EnemyReadyPopupSet_Normal(true);
        _ClientMng.SendDataToServer("stonestoped");

        if (_SpareStoneCount_My == 0 && _SpareStoneCount_Enemy == 0)
        {
            _GameMng.EnemyReadyPopupSet_Change(true);
            ChangeToOmGame();
            _GameMng._NowGameOm = true;
        }
        else if (_WantUseChangeStone_AlGame)
        {
            _GameMng.UseChangeStone();
            _GameMng.EnemyReadyPopupSet_Change(true);
            ChangeToOmGame();
            _GameMng._NowGameOm = true;
        }
        _WantUseChangeStone_AlGame = false;
    }