# Step 3 - UI Manager

## Adding the UI Manager

> Add the "AK\_UIManager" from the prefabs folder or the "Adventure\_Kit\_Managers" pack to add all to the hierarchy. You can add the "AKUIManager" script to an empty gameobject if you want to start fresh

## How to reference the UI Manager

```csharp
//Add this namespace to the top of the script to reference the adventure kit
using AdventurePuzzleKit;
```

```csharp
//Whether you have picked up the flashlight object 
AKUIManager.instance.hasFlashlight = true;

//Whether you have picked up a Gas Mask
AKUIManager.instance.hasGasMask = true;

//Whether you have picked up a jerrycan 
AKUIManager.instance.hasJerrycan = true;

//Whether you have collected a themed key - Any will work
AKUIManager.instance.hasThemedKey = true;
```

## Screenshot of the AK\_UIManager

![](/files/-MaPZulkZT82QvfOtAkD)

> Add the Canvas' that are suitable for the specific slots from the "AdventureKit\_CanvasContainer" from the prefabs folder


---

# 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://speedtutoruk.gitbook.io/adventure-puzzle-kit-doc/getting-started/adventure-kit-setup/step-2-ui-manager.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.
