public void HideVillains() { if (currentState == CriticalModeState.onExit) { currentState = CriticalModeState.Idle; if (onReset != null) { onReset.Invoke(); } } }
public void doOnExit() { if (onExitState == null) { return; } currentState = CriticalModeState.onExit; timeEplased = 0; onExitState.Invoke(); }
public void doOnEnter() { if (onEnterState == null) { return; } if (currentState != CriticalModeState.Idle) { return; } currentState = CriticalModeState.onEnter; onEnterState.Invoke(); }
public void Reset() { timeEplased = 0; currentState = CriticalModeState.Idle; }