示例#1
0
 public void Play()
 {
     if (!isPlay)
     {
         if (GC.ReadyToPlay())
         {
             isPlay            = true;
             enemyColl.enabled = true;
             ready             = true;
             notReady.SetActive(false);
             //enemyShips.SetActive(false);
             shipIndication.SetActive(true);
             GC.PlayerTurn();
             AI.GenerateDisposition();
             GC.GetReadyGrids();
             GC.AIOutputGrid();
             AI.AddShipCoord();
             RAS.DisableAllShips();
             ClearLogs();
         }
         else
         {
             prevTime = Time.time;
             ready    = false;
             notReady.SetActive(true);
         }
     }
 }