void OnCustomEvent(string eventName, ParadoxNotion.IEventData msg) { if (eventName.Equals(this.eventName.value, System.StringComparison.OrdinalIgnoreCase)) { var receivedValue = msg.valueBoxed; if (ObjectUtils.AnyEquals(receivedValue, value.value)) { Logger.Log(string.Format("Event Received from ({0}): '{1}'", agent.gameObject.name, eventName), LogTag.EVENT, this); YieldReturn(true); } } }