public float GetTransitionIn() { // Set plan _actionStateMachine.Plan = _plan; // Return in transition return(_actionStateMachine.GetTransitionIn()); }
protected void Start() { // Initialize actions _InitializeActions(); // Initialize goals _InitializeGoals(); // Set state _SetState(); // Set goal _SetGoal(); // Set plan _SetPlan(); // Subscribe to plan completed _actionStateMachine.PlanCompleted_.AddListener(() => _SetPlan()); // Get in transition var transitionIn = _actionStateMachine.GetTransitionIn(); // Execute actions StartCoroutine(_actionStateMachine.ExecuteAction(transitionIn, getTransitionOut: () => null, setTransitionOut: transitionOut => { })); }