private void UpdateUnits(int minUnitLifetime) { foreach (UnitModel unit in _planet.Life.Units) { if (_debug.isActive || unit.Props[R.Health].Value > 0) { _liveSkill.ExecuteTime(minUnitLifetime, unit); _mineSkill.ExecuteTime(minUnitLifetime, unit); } } _planetUpdateCommand.Execute(); }
public void PlanetLoaded() { GameModel.Set <PlanetModel>(_selectedPlanet); _planetUpdateCommand.Execute(); GameMessage.Listen <ClockTickMessage>(OnClockTick); }