コード例 #1
0
 private void FixedUpdate()
 {
     if (_Shooted)
     {
         if (_GameMng.CheckAllStoneStop())
         {
             Debug.Log("stop");
             StoneStoped();
         }
         else
         {
             List <AlStoneDataFormat> list = new List <AlStoneDataFormat>();
             for (int i = 0; i < _GameMng.StonesCount(); i++)
             {
                 list.Add(_GameMng.GetStoneData(i));
             }
             JsonData data = JsonMapper.ToJson(list);
             //Debug.Log(data.ToString());
             _ClientMng.SendDataToServer("al" + data.ToString());
         }
     }
 }