Example #1
0
 /// <summary> Initializes a new instance of the class with the passed SystemGameEvent </summary>
 /// <param name="systemGameEvent"> The game event string that will get sent with this message </param>
 public GameEventMessage(SystemGameEvent systemGameEvent)
 {
     EventName     = systemGameEvent.ToString();
     Source        = null;
     CustomObject  = null;
     IsSystemEvent = true;
 }
Example #2
0
 /// <summary> Initializes a new instance of the class with a SystemGameEvent and a source GameObject reference </summary>
 /// <param name="systemGameEvent"> The game event string that will get sent with this message </param>
 /// <param name="source"> The GameObject reference that will get sent with this message </param>
 /// <param name="customObject"> A custom Object reference that will get sent with this message </param>
 public GameEventMessage(SystemGameEvent systemGameEvent, GameObject source, Object customObject = null)
 {
     EventName     = systemGameEvent.ToString();
     Source        = source;
     CustomObject  = customObject;
     IsSystemEvent = true;
 }
Example #3
0
 /// <summary> Send a message with a passed SystemGameEvent and a source GameObject reference </summary>
 /// <param name="systemGameEvent"> The game event string sent with this message </param>
 /// <param name="source"> The source game object reference that sent this message </param>
 public static void SendEvent(SystemGameEvent systemGameEvent, GameObject source)
 {
     SendEvent(new GameEventMessage(systemGameEvent, source));
 }
Example #4
0
 /// <summary> Send a message with the passed SystemGameEvent </summary>
 /// <param name="systemGameEvent"> The game event string sent with this message </param>
 public static void SendEvent(SystemGameEvent systemGameEvent)
 {
     SendEvent(new GameEventMessage(systemGameEvent));
 }
 /// <summary> Initializes a new instance of the class with a SystemGameEvent and a GameObject reference </summary>
 /// <param name="systemGameEvent"> The game event string that will get sent with this message </param>
 /// <param name="source"> The game object reference that will get sent with this message </param>
 public GameEventMessage(SystemGameEvent systemGameEvent, GameObject source)
 {
     EventName     = systemGameEvent.ToString();
     Source        = source;
     IsSystemEvent = true;
 }