public override void OnEventRaise(SimpleEvent inSimpleEvent) { if (StringResponse.GetPersistentEventCount() > 0) { StringResponse.Invoke(StringEvent.Value); } }
public void Raise() { EventParams eventParams = ParamEvent.Parameters; // string if (responseUsingString.GetPersistentEventCount() >= 1) { responseUsingString.Invoke(eventParams.StringParam); } // int if (responseUsingInt.GetPersistentEventCount() >= 1) { responseUsingInt.Invoke(eventParams.IntParam); } // float if (responseUsingFloat.GetPersistentEventCount() >= 1) { responseUsingFloat.Invoke(eventParams.FloatParam); } // bool if (responseUsingBool.GetPersistentEventCount() >= 1) { responseUsingBool.Invoke(eventParams.BoolParam); } // obj if (responseUsingObject.GetPersistentEventCount() >= 1) { responseUsingObject.Invoke(eventParams.ObjectParam); } }
public void TriggerEvent() { if (OnInputEvent == null) { return; } //OnInputEvent = new SEvent(); OnInputEvent.Invoke(inputToEvent); }