| 210 | } |
| 211 | |
| 212 | void Time::SetGamePaused(bool value) |
| 213 | { |
| 214 | if (_gamePaused == value) |
| 215 | return; |
| 216 | _gamePaused = value; |
| 217 | if (_gamePausedUnfocsed) |
| 218 | return; |
| 219 | |
| 220 | // Reset ticking |
| 221 | const double time = Platform::GetTimeSeconds(); |
| 222 | Update.OnReset(UpdateFPS, time); |
| 223 | Physics.OnReset(PhysicsFPS, time); |
| 224 | Draw.OnReset(DrawFPS, time); |
| 225 | } |
| 226 | |
| 227 | float Time::GetDeltaTime() |
| 228 | { |