Detailed Setup
Last updated
Last updated
If you're using multiple puzzle assets from my store, check this page below for conflicts that you might come across and ways to fix them!
When starting your new project please import an FPSController into your project. Add an FPSController prefab to your scene. (Unless you’re using the demo which will already have one added but the package will be required to be imported before use). You can add the TKRaycast script to either the main camera or the main player object.
Now drag the (from the Prefabs folder into the hierarchy)
TKUIManager
TKAudioManager
TKInventoryManager
Select the UIManager, which will have the TKUIManager script and make sure all the items are connected as below:
Make sure to add the slots, crosshair and inventory canvas like is under the UIManager object
The Key Inventory Canvas is under the UI Manager
Select the TKInventory – This item shouldn’t need editing at all, just make sure it’s on an empty gameobject
Select the AudioManager and add the ScriptableObjects for sounds you will have created. (The ScriptableObjects folder will have some examples)
Tag: InteractiveObject
Add a Box Collider
Add a TKItem script to the object and set the ItemType to Key
Add a TKKeyCollectable script and add the appropriate ScriptableObjects and your desired ScriptableObjects audio clip. (Found in the ScriptableObjects folder)
Tag: InteractiveObject
Make sure to add a Box Collider
This object should have an Animator component
Add a TKItem script to the object and set the ItemType to Door
Add a TKDoorInteractable script and add the appropriate ScriptableObjects and settings:
Remove Key After Use
Should the key be removed from the inventory after using it with the door?
Key Scriptable
Add the key scriptable object that is specific for this door
Animated Door Key
Add the animated key which is parented to this asset
Sounds
Add the sound SO's that are in the screenshot below
Key Audio Delay
The delay before the audio for key insert will play. Default: 0.5 seconds
Door Open Delay
The delay before the door opening sound will play. Default: 1.5 seconds
Animation Event
The event which happens when the key is inspired, so in my demo this plays the animation from the TKDoorOpen script which is on the prefab object.
v1.5 now using a JSON save system and you can find more information