public static void MMEventStopListening <EventType>(this MMEventListener <EventType> caller) where EventType : struct
 {
     MMEventManager.RemoveListener <EventType>(caller);
 }
Exemple #2
0
 public static void Trigger(int id = 0)
 {
     e.ID = id;
     MMEventManager.TriggerEvent(e);
 }
 public static void Trigger(string sceneName, LoadingStatus status)
 {
     e.Status    = status;
     e.SceneName = sceneName;
     MMEventManager.TriggerEvent(e);
 }
 public static void Trigger(string newName)
 {
     e.EventName = newName;
     MMEventManager.TriggerEvent(e);
 }