public void Update(float t) { if (currentState == null) { return; } newState = currentState.UpdateState(t); CheckStateChange(); }