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