()
| 87 | } |
| 88 | |
| 89 | internal void Update() |
| 90 | { |
| 91 | // Changing states |
| 92 | while (_pendingStates.Count > 0) |
| 93 | { |
| 94 | GoToState(_pendingStates.Dequeue()); |
| 95 | } |
| 96 | |
| 97 | // State update |
| 98 | if (CurrentState != null) |
| 99 | { |
| 100 | CurrentState.Update(); |
| 101 | CurrentState.UpdateFPS(); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /// <inheritdoc /> |
| 106 | protected override void SwitchState(State nextState) |