/// <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; }
/// <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; }
/// <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; }