private void ForceExit() { using (var flow = Flow.New(reference)) { state.OnExit(flow, StateExitReason.Forced); } }
private void TriggerUpdate(GraphReference reference) { using (var flow = Flow.New(reference)) { Update(flow); } }
protected override void OnDisable() { base.OnDisable(); if (hasGraph) { using (var flow = Flow.New(reference)) { graph.Stop(flow); } } }
protected override void OnUninstantiateWhileEnabled() { base.OnUninstantiateWhileEnabled(); if (hasGraph) { using (var flow = Flow.New(reference)) { graph.Stop(flow); } } }
protected override void OnEnable() { if (hasGraph) { using (var flow = Flow.New(reference)) { graph.Start(flow); } } base.OnEnable(); }
public void Trigger(GraphReference reference, TArgs args) { var flow = Flow.New(reference); if (!ShouldTrigger(flow, args)) { flow.Dispose(); return; } AssignArguments(flow, args); Run(flow); }
protected void InvokeControlOutput(ControlOutput output) { Flow.New(graphReference)?.Invoke(output); }