public void Onclick_putKoma(OceloController octrl, Vector2Int pos)
 {
     if (!handPut)
     {
         return;
     }
     octrl.SetKoma(pos, _myColor);
 }
Esempio n. 2
0
 public override void TurnAction(OceloController oc)
 {
     WaitAction.Instance.CoalWaitAction(() =>
     {
         var putlist = GameLogic_ocelo.GetPutEnable(oc._BanData, (int)_myColor);
         var target  = putlist[0];
         oc.SetKoma(target, _myColor);
     }, 1);
 }
        public void Test_setKoma()
        {
            GameControllData.PlayerColor targetColor = _octrl._NowPlType;
            var  list = GameLogic_ocelo.GetPutEnable(_octrl._BanData, (int)targetColor);
            var  pos  = list[0];
            bool put  = _octrl.SetKoma(pos, targetColor);

            Assert.AreEqual(true, put);
            Assert.AreEqual((int)targetColor, _octrl._BanData[pos.x, pos.y]);
        }