# Quick Setup

{% embed url="<https://youtu.be/cgacJpoHkwc>" %}

{% hint style="info" %}
**QUICK START:** Use the included **Entire\_DemoScene** prefab (Which can be found in the prefabs folder) to add all the required components to your scene with one drag and drop asset. Then customise to your liking!
{% endhint %}

1\). Add the FPSController object from the prefabs folder into your scene and make sure to add:

* BRInteractor&#x20;

{% hint style="info" %}
You can set the Ray distance of which you can interact with assets and also which button press to make an interact. By default it is Left Mouse Click.
{% endhint %}

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2FUSWCECjJSrukN3hxPYNM%2FBRInteractor.JPG?alt=media&#x26;token=fa69a6e6-be88-4a79-aeea-22e19c9df670" alt=""><figcaption></figcaption></figure>

2\). Add the pickups to your scene: Cash or Armour, these items will need these:

* Box Collider
* BRItem script
  * Set the **ItemType** & **Item Value**

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2F0LXZU4DtjZ8mWSsRmEyh%2FArmourPickup.JPG?alt=media&#x26;token=a5f81b79-af2f-4f5d-a0d2-662c665d8fa3" alt=""><figcaption></figcaption></figure>

3\). Add a damage area to your scene or any other object you want to cause damage to the player

* You need to add the **Damage Area** script to it
* Add a collider so the interaction cna happen and set to **IsTrigger**

{% hint style="info" %}
Gas particles are provided in the demo scene and prefabs folder for some visual improvements
{% endhint %}

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2Fo982LTMOQdchXddvNsL6%2FDamageArea.JPG?alt=media&#x26;token=234b1122-576f-43d2-8692-fd8bcb6ee610" alt=""><figcaption></figcaption></figure>

4\). Add a BRUIManager:

* This controls where all the UI elements should be connected to (Make sure to add the canvas elements as below)

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2FKANO0BwQeL8bMsJx5WTu%2FBRUIManager.JPG?alt=media&#x26;token=0ae9d790-330f-4a26-bd08-ea103af36fa2" alt=""><figcaption></figcaption></figure>

5\). BR Vitals Manager:&#x20;

* **Player Cash:** How much cash to have on start
* **Current Health Value:** Health at the start of the game.&#x20;
* **Starting Armour Equipped:** How much starting armour (Out of 3).&#x20;
* **Armour Stored:** Armour currently held in the inventory&#x20;
* **Max Heal & Equip Timers:** How long before you will regenerate health and how long to equip armour plates
* **Equip Armour Key:** The key to hold before equipping armour
* **Sounds:** The sound reference Scriptables for the sound effects you'd like to use

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2FcTgrL8ZxpD601O7LR3Y4%2FBRVitalsManager.JPG?alt=media&#x26;token=c782cfe7-15b8-4c06-9f39-1a97ae20fc6d" alt=""><figcaption></figcaption></figure>

6\). BR Audio Manager: Add any of the Sound Scriptables Objects to this array if you're using them.

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2FZMLAiH91hmoinCL6gRka%2FBRAudioManager.JPG?alt=media&#x26;token=a7d36e18-185c-4fd9-a54b-0e4ea45394bc" alt=""><figcaption></figcaption></figure>

7\). Add the two Canvas's: These will be the Health Canvas and the Crosshair Canvas. They can be found in the prefabs folder

<figure><img src="https://567177526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNPkH0XFxNRrB0pIbaLD%2Fuploads%2F2U04VldLwR9ImgqLN52s%2FCanvas.JPG?alt=media&#x26;token=9c698b95-ebe8-4022-bd21-c9dc0b8e43ae" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**This should be setup and ready to use, if you do have any issues at all. Do send me an email and I'll get back to you as soon as possible!**
{% endhint %}
