コード例 #1
0
 private void TakeKoma(GameObject torarerukoma)
 {
     //ここにmotikinn増加処理
     AddMotikinn(torarerukoma.GetComponent <koma>().GetKomakind());
     mapdata.Motikinnsum();
     mapdata.TextUpdate();
     //リストから削除
     mapdata.Kdatalist.RemoveAt(keeplistnumber);
     //オブジェクトの削除
     Destroy(torarerukoma);
 }
コード例 #2
0
 public void Break10_1()
 {
     mapdata        = GetComponent <Mapdata>();
     gamecontroller = GetComponent <Gamecontroller>();
     if (gamecontroller.turnplayer != 1)
     {
         return;
     }
     if (mapdata.motikinn[0, 2] <= 0)
     {
         return;
     }
     if (mapdata.motikinn[0, 1] >= 10)
     {
         return;
     }
     mapdata.motikinn[0, 2]--;
     mapdata.motikinn[0, 1] = mapdata.motikinn[0, 1] + 2;
     mapdata.TextUpdate();
     return;
 }
コード例 #3
0
 public void Change5Up1()
 {
     mapdata        = GetComponent <Mapdata>();
     gamecontroller = GetComponent <Gamecontroller>();
     if (gamecontroller.turnplayer != 1)
     {
         return;
     }
     if (mapdata.motikinn[0, 1] < 2)
     {
         return;
     }
     if (mapdata.motikinn[0, 2] >= 10)
     {
         return;
     }
     mapdata.motikinn[0, 1] = mapdata.motikinn[0, 1] - 2;
     mapdata.motikinn[0, 2]++;
     mapdata.TextUpdate();
     return;
 }
コード例 #4
0
 public void Break100_2()
 {
     mapdata        = GetComponent <Mapdata>();
     gamecontroller = GetComponent <Gamecontroller>();
     if (gamecontroller.turnplayer != 2)
     {
         return;
     }
     if (mapdata.motikinn[1, 4] <= 0)
     {
         return;
     }
     if (mapdata.motikinn[1, 3] >= 10)
     {
         return;
     }
     mapdata.motikinn[1, 4]--;
     mapdata.motikinn[1, 3] = mapdata.motikinn[1, 3] + 2;
     mapdata.TextUpdate();
     return;
 }
コード例 #5
0
 public void Change50Up2()
 {
     mapdata        = GetComponent <Mapdata>();
     gamecontroller = GetComponent <Gamecontroller>();
     if (gamecontroller.turnplayer != 2)
     {
         return;
     }
     if (mapdata.motikinn[1, 3] < 2)
     {
         return;
     }
     if (mapdata.motikinn[1, 4] >= 10)
     {
         return;
     }
     mapdata.motikinn[1, 3] = mapdata.motikinn[1, 3] - 2;
     mapdata.motikinn[1, 4]++;
     mapdata.TextUpdate();
     return;
 }
コード例 #6
0
 public void Change1Up2()
 {
     mapdata        = GetComponent <Mapdata>();
     gamecontroller = GetComponent <Gamecontroller>();
     if (gamecontroller.turnplayer != 2)
     {
         return;
     }
     if (mapdata.motikinn[1, 0] < 5)
     {
         return;
     }
     if (mapdata.motikinn[1, 1] >= 10)
     {
         return;
     }
     mapdata.motikinn[1, 0] = mapdata.motikinn[1, 0] - 5;
     mapdata.motikinn[1, 1]++;
     mapdata.TextUpdate();
     return;
 }