Ejemplo n.º 1
0
 public override void OnEventRaise(SimpleEvent inSimpleEvent)
 {
     if (FloatResponse.GetPersistentEventCount() > 0)
     {
         FloatResponse.Invoke(FloatEvent.Value);
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }