Пример #1
0
    public void ShootStone_Shoot(Vector2 power)
    {
        _ShootVectorArrow.SetActive(false);
        _NowTouchDown     = false;
        _GameMng._TimerOn = false;
        Stone stone = _GameMng.UseStone();

        stone.InitAl(_GameMng.ImBlack(), _ShootReadyStonePos[_NowSelectStoneNumber]);
        stone.ShootAl(power);

        _CanShootSlot_My[_NowSelectStoneNumber] = false;
        _ClientMng.SendDataToServer("sh" + _NowSelectStoneNumber.ToString());
        _NowSelectStoneNumber = -1;
        _SpareStoneCount_My--;
        _Shooted = true;
    }
Пример #2
0
 public void StoneSet_MySelf()
 {
     if (_GameMng.IsMyTurn() && _SpareStoneCount != 0)
     {
         if (_Board[_NowTargetPos_Y, _NowTargetPos_X] == 0)
         {
             _SpareStoneCount--;
             _GameMng._TimerOn = false;
             _GameMng.UseStone().InitOm(_GameMng.ImBlack(), _NowTargetPos_X, _NowTargetPos_Y);
             _Board[_NowTargetPos_Y, _NowTargetPos_X] = _GameMng.GetMyBlockNumber();
             OmSendDataFormat data = new OmSendDataFormat(_NowTargetPos_X.ToString(), _NowTargetPos_Y.ToString());
             string           item = JsonUtility.ToJson(data);
             _GameMng.TurnChange();
             _SoundMng.EffectSoundPlay("setstone");
             _GameMng.EnemyReadyPopupSet_Normal(true);
             _ClientMng.SendDataToServer("om" + item);
             WinOrDrawCheck();
             _WantUseChangeStone_OmGame = false;
         }
     }
 }
Пример #3
0
 public void UseChangeStone()
 {
     _ChangeStoneCount_My--;
     _ClientMng.SendDataToServer("cc" + _ChangeStoneCount_My.ToString());
 }