private void Update() { if (isDestroyed) { return; } if (Input.GetKeyDown(KeyCode.K) && Pilot.IsPlayer) { ApplyDamage(new DamageEventParams() { Damage = Specs.HullStrength, DamagedBy = null }); } if (Pilot.IsPlayer) { Pilot.CapturePlayerInput(); } else { Pilot.RunAI(); } if (turrets.Count > 0) { foreach (var turret in turrets) { turret.Update(); } } }