public void Process() { if (StateFunc == null) { return; } var state = StateFunc.Invoke(hud); if (state == LastState) { return; } if (state == DefaultState && ExitFunc != noop) { ExitFunc(hud); } if (state != DefaultState && EnterFunc != noop) { EnterFunc(hud); } LastState = state; }
public void OnUpdate() { m_OnUpdate?.Invoke(); }
public void OnLeave() { m_OnLeave?.Invoke(); }
public void OnEnter() { m_OnEnter?.Invoke(); }