/// <summary> /// Call to finish the event. Once called, UpdateEvent() will no longer be called /// </summary> public virtual void EndEvent() { CurrentState = UIEventState.COMPLETED; if (OnEndEvent != null) { OnEndEvent.Invoke(); } }
static void OnRuntimeMethodLoad() { canContinueState = UIEventState.Normal; groupStateDict = new Dictionary<UIEventGroup, UIEventState>() { { UIEventGroup.None, UIEventState.Normal }, { UIEventGroup.Top, UIEventState.Normal }, { UIEventGroup.Left, UIEventState.Normal }, { UIEventGroup.Middle, UIEventState.Normal }, { UIEventGroup.Popup, UIEventState.Normal }, }; }
public void ResetEvent() { CurrentState = UIEventState.NOT_STARTED; DoReset(); }
/// <summary> /// Called to start the event. Once this function has been called, UpdateEvent() /// will begin to fire every frame. /// </summary> public virtual void BeginEvent() { CurrentState = UIEventState.IN_PROGRESS; OnBeginEvent.Invoke(); Begin(); }
public static void SetGroupState( UIEventGroup group, UIEventState state ) { groupStateDict[group] = state; }