# Airship Components

Most game logic is run through AirshipBehaviours. It is our equivalent to [Unity's MonoBehaviour](https://docs.unity3d.com/Manual/class-MonoBehaviour.html).

AirshipBehaviours offer [useful lifecycle methods](/typescript/airshipbehaviour/lifecycles.md). They are attached to [Game Objects](https://docs.unity3d.com/Manual/class-GameObject.html).&#x20;

{% code fullWidth="false" %}

```typescript
export default class ExampleAirshipBehaviour extends AirshipBehaviour {
	public greeting = "Hello, World!";

	public Start(): void {
		print(this.greeting);
	}
}
```

{% endcode %}

After the file is compiled, it can be added to a Game Object through the **Add Airship Component** menu

<figure><img src="/files/AekzJJVvApkDr56TLpjS" alt=""><figcaption></figcaption></figure>

You should see your component added after selecting it:

<figure><img src="/files/amjHuVczYaSDO6yLS1qV" alt=""><figcaption></figcaption></figure>

When you run your game, this will print "Hello, World!"&#x20;


---

# Agent Instructions: 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://docs.airship.gg/typescript/airshipbehaviour.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.
