예제 #1
0
 public void SetShip(Ship ship)
 {
     currentTurn = Turner.GetCurrentTime();
     this.ship   = ship;
     shipId      = ship.id;
     order       = ship.order.Clone();
     DrawDestinations();
 }
예제 #2
0
 private void Update()
 {
     if (lastTurn < Turner.GetCurrentTime())
     {
         lastTurn = Turner.GetCurrentTime();
         CheckUpdate();
     }
 }
예제 #3
0
 void Update()
 {
     textGo.text = "day: " + Turner.GetCurrentTime().ToString();
     if (Turner.allowedTimeSteps <= 0)
     {
         elapsedTime.text = "";
     }
     else
     {
         elapsedTime.text = Turner.allowedTimeSteps.ToString();
     }
 }
예제 #4
0
 private void CheckNextTurn()
 {
     if (ship.state == EShipState.unHypering)
     {
         return;
     }
     if (currentTurn < Turner.GetCurrentTime())
     {
         if (ship.state == EShipState.docked || ship.state == EShipState.inHyper)
         {
             GameObject.Destroy(gameObject);
         }
         progress    = 0;
         currentTurn = Turner.GetCurrentTime();
         order       = ship.order.Clone();
     }
 }