public void Update(double time) { if (currentState == null) { return; } currentState.Execute(time); }