예제 #1
0
 public override void OnEventRaise(SimpleEvent inSimpleEvent)
 {
     if (StringResponse.GetPersistentEventCount() > 0)
     {
         StringResponse.Invoke(StringEvent.Value);
     }
 }
예제 #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);
            }
        }