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

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

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

            base.OnEnable();
        }
Exemplo n.º 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);
        }
Exemplo n.º 7
0
 protected void InvokeControlOutput(ControlOutput output)
 {
     Flow.New(graphReference)?.Invoke(output);
 }