MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetGamePaused

Method SetGamePaused

Source/Engine/Engine/Time.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void 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
227float Time::GetDeltaTime()
228{

Callers

nothing calls this directly

Calls 1

OnResetMethod · 0.80

Tested by

no test coverage detected