public void DetachMultipleOfMethodEvent(int amount, MethodEvent methodEvent)
 {
     for (int i = 0; i < amount; i++)
     {
         DetachMethodEvent(methodEvent);
     }
 }
 public void AttachMultipleOfMethodEvent(int amount, MethodEvent methodEvent, AotList arguments)
 {
     for (int i = 0; i < amount; i++)
     {
         methodEvent.methodEventData["arguments"] = (AotDictionary)arguments[i];
         methodEvents.Add(methodEvent);
     }
 }
        public MethodEvent FindEvent(MethodEventListener methodEventListener, string @name, int @eventId)
        {
            MethodEvent newEvent = null;

            foreach (MethodEvent methodEvent in methodEventListener.methodEvents)
            {
                if (methodEvent.name == name && (int)methodEvent.methodEventData["eventId"] == eventId)
                {
                    newEvent = methodEvent;
                    break;
                }
            }

            return(newEvent);
        }
 public void DetachMethodEvent(MethodEvent @methodEvent)
 {
     methodEvents.Remove(methodEvent);
 }
 public void AttachMethodEvent(MethodEvent @methodEvent, AotDictionary arguments)
 {
     methodEvent.methodEventData["arguments"] = arguments;
     methodEvents.Add(methodEvent);
 }