# Quick Start

## Basic Setup

1. Add a `FlowPlayer` component to any GameObject
2. In the inspector, expand the **Action Flow** section
3. Click the action dropdown and select an action to add
4. Configure the action properties
5. Call `Play()` on the FlowPlayer or set AutoPlay to **On Start**

***

## Example: Simple Fade Sequence

```csharp
// Get reference to FlowPlayer
FlowPlayer player = GetComponent<FlowPlayer>();

// Play the sequence
player.Play();

// Or listen for completion
player.OnComplete.AddListener(() => {
    Debug.Log("Sequence completed!");
});
```

***

## Using Triggers (No Code Required)

1. Add a `FlowPlayer` component and set up your actions
2. Add a trigger component (e.g., `OnInputTrigger`) to the same or another GameObject
3. Drag the FlowPlayer into the trigger's **Flow Player** field
4. Configure the trigger settings (e.g., which key to listen for)
5. Enter Play mode — the trigger will automatically play the FlowPlayer when conditions are met


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beelabs-dev.gitbook.io/beelabs-docs/flow-of-action/quick-start.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
