Chess Puzzle Sys - Setup
Chess Puzzle Main Setup
Make sure to have a "ChessPuzzle_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 Chess Puzzle Canvas added
Add a "Power Manager" from the prefabs to your scene and add each of the fuse boxes to the slot (See more information below)
Add a "ChessPuzzle - Manager" prefab or script to an empty GameObject
Add a set of Themed PBR fuse models 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: "ChessSys"
Add the "ChessItemController" script and set the item type to: "ChessFuse"
Add the "ChessSingleFuseController" script and set the fuse to the corresponding fuse type
Add a set of fuse box prefabs to the scene
Set the tag to "InteractiveObject"
Set the layer to "Interact"
Add a "Box Collider"
Add the "AKItemController" script and set the system type to: "ChessSys"
Add the "ChessItemController" script and set the item type to: "Fusebox"
Add the "ChessFuseBoxController" script and setup as follows:
Set the "FuseBoxType" to the type of fuse box you wish this to be
Set whether you want a fuse to be placed in the box by default (You won't need one in the world, if this is the case
Add the fuse objects which will be parented and children of each of the fuse boxes
Add the "Power Manager" object to this slot
Add the "FuseBoxLight" which will be a child of this object
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 chess puzzle system!
PBR Key Setup
Add a set of Themed PBR fuse models 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: "ChessSys"
Add the "ChessItemController" script and set the item type to: "ChessFuse"
Add the "ChessSingleFuseController" script and set the fuse to the corresponding fuse type
Door Controller Setup
Add a set of fuse box prefabs to the scene
Set the tag to "InteractiveObject"
Set the layer to "Interact"
Add a "Box Collider"
Add the "AKItemController" script and set the system type to: "ChessSys"
Add the "ChessItemController" script and set the item type to: "Fusebox"
Add the "ChessFuseBoxController" script and setup as follows:
Set the "FuseBoxType" to the type of fuse box you wish this to be
Set whether you want a fuse to be placed in the box by default (You won't need one in the world, if this is the case
Add the fuse objects which will be parented and children of each of the fuse boxes
Add the "Power Manager" object to this slot
Add the "FuseBoxLight" which will be a child of this object
Fuse Box Prefab Setup
Each Fuse box Prefab has various children which can be aniamted, including: - Door, Handle and light
The fuse box will have all of the chess pieces parented, which will become activated when the items are placed within the system!
Power Manager Setup
Add each of the Chess fuses to the corresponding slots!
Power on Event
This is an event you can use to create a custom action when the fuses are put into the correct order, my example uses a basic script to turn some emissive elements of materials on but you could change this to include a door animation or similar!
Adding to UI Manager Prefab
Make sure to the "ChessPuzzle_Canvas" object to the "UIManager" prefab!
Default Controls
Left Click to interact with a pickup
Press "TAB" to open the inventory and close
These can be edited in the "InputManager"
Last updated