public void SetShip(Ship ship) { currentTurn = Turner.GetCurrentTime(); this.ship = ship; shipId = ship.id; order = ship.order.Clone(); DrawDestinations(); }
private void Update() { if (lastTurn < Turner.GetCurrentTime()) { lastTurn = Turner.GetCurrentTime(); CheckUpdate(); } }
void Update() { textGo.text = "day: " + Turner.GetCurrentTime().ToString(); if (Turner.allowedTimeSteps <= 0) { elapsedTime.text = ""; } else { elapsedTime.text = Turner.allowedTimeSteps.ToString(); } }
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(); } }