// Update is called once per frame protected virtual void Update() { if (stats.IsDead()) { Die(); } if (stats.GetCurSpeed() <= 0.1f) { if (engineController != null) { engineController.EngineOff(); } } else { if (engineController != null) { engineController.EngineOn(); } } }