# Detailed Setup

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

{% hint style="info" %}
**Tag Setup:**&#x20;

* **Raycast:**&#x20;
  * 3D phone model should be tagged **Phone**
* **Trigger:**&#x20;
  * 3D phone model should be set to **Untagged**
  * FPSController should be tagged **Player**
    {% endhint %}

1\). Place the **FPSController** prefab in your scene from the **Phone System > Prefabs** folder

* On the **MainCamera** – Attach **PhoneInteractor** Script. (If not already).
* Set the RaycastDistance on the raycast script
* Set the **FPSController** object to the tag of **Player**. (Can be changed in the **PhoneTrigger** script)

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2Fn3hOBBC1PsBK73uenzzo%2FMainCamera.JPG?alt=media\&token=aae5f3f0-e566-49e6-ba5a-9313a80bc7ad)

2\). Add the **UIManager** object into the hierarchy and add the following references:&#x20;

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2Fpe5t1mDfCOcdsW21lZsm%2FUIManager_Children.JPG?alt=media\&token=5ad1f5e0-d270-438e-b67f-1699b2dcdaad)

* **Crosshair:** Add the **UI\_Crosshair** image from the child below
* **InteractPrompt:** Add the **UI\_InteractPrompt** from the child below
* **Phone Type Input Fields:** Add out of the **UI\_Type\_InputFields** from the children below
* Phone Type Canvas: *Add the canvas' to the correct slot*

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2F2kiKE8ZifyxN6HpFgCk4%2FUI_Manager_References.JPG?alt=media\&token=e36c88df-8099-4189-90d8-7c575db6217c)

4\). Add ONE **AudioManager** to the hierarchy:

* Add the ScriptableObjects named **SO\_DeadDialTone** and so on from the SOs folder

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2FXsOrV1evnwq01FD5KEYr%2FAudioManager.JPG?alt=media\&token=dbd4c503-fdf0-406e-9625-a3f832641449)

5\). Add ONE **Disable Manager** to the hierarchy:&#x20;

* Make sure to add the **FPSController** object to this slot

{% hint style="info" %}
Check the "Using different character controllers" on the left bar for more information on changing this option
{% endhint %}

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2Fu34l7U2Vv3B8KXTafFQX%2FDisableManager.JPG?alt=media\&token=5b4f4f3f-dbe5-47fd-ba4d-ca83fa1d56af)

6\). Add ONE **InputManager** - Make sure to set the inputs you'd like.

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2FHF4SOSNklz6KroCKbNY5%2FInputManager.JPG?alt=media\&token=9844a77c-076e-4f44-b4ff-be771fc4fff5)

7\). You can choose to add one of the **Raycast\_Prefabs** to your scene. (Please drag one of those out to the hierarchy! This should include: **A phone controller, phone model, and various miscellaneous objects**

{% hint style="info" %}
Use the Raycast Prefabs if you want a First Person Interaction but the “**Trigger**” prefabs for a 3rd person or trigger style interaction!
{% endhint %}

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2F8Hg9ryRbRLXwqpQY5JBt%2FRaycast_Prefabs.JPG?alt=media\&token=f1344a60-3319-4b6a-8b9c-06f1e603e21d)

8\). Open any of the Raycast or Trigger Phone collections and find the phone 3D model:&#x20;

* Set tag: **Phone** (If using for a FirstPerson setup)
* Has the **PhoneItem** script attached with the controller added to the slot
* Has a **Box Collider**

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2FN6Ygbq7SknRCC7KR8YO9%2FPhoneModel.JPG?alt=media\&token=662b6480-acdf-4a01-a62e-5f5a59009664)

9\). Take a look at the **Controller** script for that set of objects - See settings below:

![](https://3833222833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOO5Cnfx5XQPWmKG2fcC%2Fuploads%2FG85fLCWeJDfF8Ri25xvF%2FPhoneController.JPG?alt=media\&token=9921d6e9-244d-46d0-b9c7-b1074e4186d0)

|                      |                                                                                                                                                                                                                                                                                                                                                                         |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Phone Type:**      | The type of phone UI this will use, set to the appropriate type                                                                                                                                                                                                                                                                                                         |
| **Character Limit:** | Set character limit, based on the code you’ve just chosen                                                                                                                                                                                                                                                                                                               |
| Phone Codes:         | <p>This is an array which can be used to add as many different number combinations as you desire. </p><ul><li>Increase the “Size” option to add more slots. </li><li>You will need to add your “Phone Code” to the corresponding slot. </li><li>Make sure the code is NOT longer than your character limit as above.</li><li>Add a SO audioclip to this slot!</li></ul> |
| Sound Effects:       | Add the ScriptableObject sound clips from the SO folder                                                                                                                                                                                                                                                                                                                 |
| Trigger Type:        | Set this to true and add the trigger object if you're using a trigger type. See the Support section of this document for more details                                                                                                                                                                                                                                   |
