public bool isRegisterEvent(LitEventType type)
 {
     if (LifeEvents == null)
     {
         return(false);
     }
     for (int i = 0; i < LifeEvents.Count; i++)
     {
         if (LifeEvents[i].EventType == type)
         {
             return(true);
         }
     }
     return(false);
 }
 public EventEntity GetEventEntity(LitEventType type)
 {
     if (LifeEvents == null)
     {
         return(null);
     }
     for (int i = 0; i < LifeEvents.Count; i++)
     {
         if (LifeEvents[i].EventType == type)
         {
             return(LifeEvents[i]);
         }
     }
     return(null);
 }
        public void GenerateEvent(LitEventType type, object sender)
        {
            if (type == LitEventType.LE_None || sender == null)
            {
                LitLogger.ErrorFormat("Trriger Invalid Event : {0} , {1}", type, sender);
                return;
            }
            var ee = GetEventEntity(type);

            if (ee != null)
            {
                TrrigerEvent te = new TrrigerEvent(ee, sender);
                curEvent = te;
                TryHandleEvent();
            }
        }