public void DetachMultipleMethodEvents(AotList methodEvents)
 {
     foreach (MethodEvent methodEvent in methodEvents)
     {
         DetachMethodEvent(methodEvent);
     }
 }
        public void StartSequence(Flow flow)
        {
            if (coroutineInstances == null)
            {
                coroutineInstances = new AotList();
            }

            if (loopRoutines == null)
            {
                loopRoutines = new AotList();
            }

            if (!isRunning || async)
            {
                isRunning = true;

                coroutineInstance = CoroutineRunner.instance;
                loopRoutine       = coroutineInstance.ConvertTo <CoroutineRunner>().StartCoroutine(Loop());
                coroutineInstances.Add(coroutineInstance);
                loopRoutines.Add(loopRoutine);

                Flow _flow = Flow.New();
                _flow.Invoke(entered);
                _flow.Dispose();
            }
        }
 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);
     }
 }
Пример #4
0
        public IList Merge(Flow flow)
        {
            var list = new AotList();

            for (var i = 0; i < inputCount; i++)
            {
                list.AddRange(flow.GetValue<IEnumerable>(multiInputs[i]));
            }

            return list;
        }
        public void AttachMultipleMethodEvents(AotList methodEvents, List <AotDictionary> argumentsList)
        {
            int count = 0;

            foreach (MethodEvent methodEvent in methodEvents)
            {
                methodEvent.methodEventData["arguments"] = argumentsList[count];
                methodEvents.Add(methodEvent);

                count++;
            }
        }
 public MethodEventListener(string name)
 {
     this.name    = name;
     instanceId   = new object().GetHashCode();
     methodEvents = new AotList();
 }