예제 #1
0
 private void ForceExit()
 {
     using (var flow = Flow.New(reference))
     {
         state.OnExit(flow, StateExitReason.Forced);
     }
 }
예제 #2
0
 private void TriggerUpdate(GraphReference reference)
 {
     using (var flow = Flow.New(reference))
     {
         Update(flow);
     }
 }
예제 #3
0
        protected override void OnDisable()
        {
            base.OnDisable();

            if (hasGraph)
            {
                using (var flow = Flow.New(reference))
                {
                    graph.Stop(flow);
                }
            }
        }
예제 #4
0
        protected override void OnUninstantiateWhileEnabled()
        {
            base.OnUninstantiateWhileEnabled();

            if (hasGraph)
            {
                using (var flow = Flow.New(reference))
                {
                    graph.Stop(flow);
                }
            }
        }
예제 #5
0
        protected override void OnEnable()
        {
            if (hasGraph)
            {
                using (var flow = Flow.New(reference))
                {
                    graph.Start(flow);
                }
            }

            base.OnEnable();
        }
예제 #6
0
        public void Trigger(GraphReference reference, TArgs args)
        {
            var flow = Flow.New(reference);

            if (!ShouldTrigger(flow, args))
            {
                flow.Dispose();
                return;
            }

            AssignArguments(flow, args);

            Run(flow);
        }
예제 #7
0
 protected void InvokeControlOutput(ControlOutput output)
 {
     Flow.New(graphReference)?.Invoke(output);
 }