public void SetTimeScale(float timeScale) { if (TimeScale == timeScale) { return; } TimeScale = timeScale; OnTimeScaleChanges(timeScale); OnTimeScaleChanged?.Invoke(timeScale); }
public static void TimeScaleChange(float _timeScale) { OnTimeScaleChanged?.Invoke(_timeScale == 0); }