diff --git a/Source/Editor/Modules/SimulationModule.cs b/Source/Editor/Modules/SimulationModule.cs
index 3faf5cd7e..fb65671cf 100644
--- a/Source/Editor/Modules/SimulationModule.cs
+++ b/Source/Editor/Modules/SimulationModule.cs
@@ -68,11 +68,6 @@ namespace FlaxEditor.Modules
BreakpointHangEnd?.Invoke();
}
- ///
- /// Checks if play mode should start only with single frame update and then enter step mode.
- ///
- public bool ShouldPlayModeStartWithStep => Editor.UI.IsPauseButtonChecked;
-
///
/// Returns true if play mode has been requested.
///
@@ -242,10 +237,9 @@ namespace FlaxEditor.Modules
_isPlayModeRequested = false;
// Enter play mode
+ var shouldPlayModeStartWithStep = Editor.UI.IsPauseButtonChecked;
Editor.StateMachine.GoToState();
-
- // Check if move just by one frame
- if (ShouldPlayModeStartWithStep)
+ if (shouldPlayModeStartWithStep)
{
RequestPausePlay();
}