Example #1
0
 /// <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();
     }
 }
Example #2
0
        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 },
        };
        }
Example #3
0
 public void ResetEvent()
 {
     CurrentState = UIEventState.NOT_STARTED;
     DoReset();
 }
Example #4
0
 /// <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();
 }
Example #5
0
 public static void SetGroupState( UIEventGroup group, UIEventState state )
 {
     groupStateDict[group] = state;
 }