Fuse Box Sys - Setup
Fuse Box Main Setup
Make sure to have a "Fusebox_Canvas" object in your scene which will have all the UI elements. This will be a child of the "AK_CanvasContainer" if you've already imported it from the initial setup
Basic Steps
Make sure you have the Fuse box Canvas added
Add a "Fusebox - Inventory Manager" prefab or script to an empty GameObject
Add a single fuse model to your scene - Setup as follows:
Set the tag to "InteractiveObject"
Set the layer to "Interact"
Add a "Box Collider"
Add the "AKItemController" script and set the system type to: "Fuse Box"
Add the "Fuse Item Controller" script and set the item type to: "Fuse"
Add a Door prefab or a door of your own
Add a fuse box model to your scene and have setup as such:
Set the tag to "InteractiveObject"
Set the layer to "Interact"
Add a "Box Collider"
Add the "AKItemController" script and set the system type to: "Fuse Box"
Add the "Fuse Item Controller" script and set the item type to: "Fusebox"
Add the "FuseboxController" script and setup as follows:
Set the "FuseInserted" to whether you want fuses to be added from the start of your game
Add the indivual fuses objects (Unless already added) from the drop down within the fuse box parent
Do the same with the fusebox lights
Add the "M_fuse_Box_Light_Green" to the green button slot
You can create any additional functionality when "Power on" is activated!
See more setup details below:
Inventory Controller Setup
This object should be an empty GameObject and it will control everything that goes on for your themed key system!
PBR Single Fuse Setup
Add this script to either a single fuse added to your scene
Make sure your object has a tag of "InteractiveObject" and a Layer of "Interact"
Add a "Box Collider" to your object
Add an "AKItemController" - Set the System Type to: "Fuse Box"
Add a "Fuse Item Controller" script and set the ObjectType to: "Fuse"
Fuse Box Setup
Add a fuse box model to your scene and have setup as such:
Set the tag to "InteractiveObject"
Set the layer to "Interact"
Add a "Box Collider"
Add the "AKItemController" script and set the system type to: "Fuse Box"
Add the "Fuse Item Controller" script and set the item type to: "Fusebox"
Add the "FuseboxController" script and setup as follows:
Set the "FuseInserted" to whether you want fuses to be added from the start of your game
Add the indivual fuses objects (Unless already added) from the drop down within the fuse box parent
Do the same with the fusebox lights
Add the "M_fuse_Box_Light_Green" to the green button slot
You can create any additional functionality when "Power on" is activated!
Make sure this object also has an "AudioSource" attached
Adding the FuseBox_Canvas to the "UI Manager" prefab
Make sure to add the "FuseboxCanvas" to the appropriate slot in the "UI Manager"
Default Controls
Left Click to interact with a pickup
Press "TAB" to open the inventory
These can be edited in the "InputManager"
Last updated