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

  1. Make sure you have the Chess Puzzle Canvas added

  2. Add a "Power Manager" from the prefabs to your scene and add each of the fuse boxes to the slot (See more information below)

  3. Add a "ChessPuzzle - Manager" prefab or script to an empty GameObject

  4. Add a set of Themed PBR fuse models to your scene - Setup as follows:

    1. Set the tag to "InteractiveObject"

    2. Set the layer to "Interact"

    3. Add a "Box Collider"

    4. Add the "AKItemController" script and set the system type to: "ChessSys"

    5. Add the "ChessItemController" script and set the item type to: "ChessFuse"

    6. Add the "ChessSingleFuseController" script and set the fuse to the corresponding fuse type

  5. Add a set of fuse box prefabs to the scene

    1. Set the tag to "InteractiveObject"

    2. Set the layer to "Interact"

    3. Add a "Box Collider"

    4. Add the "AKItemController" script and set the system type to: "ChessSys"

    5. Add the "ChessItemController" script and set the item type to: "Fusebox"

    6. Add the "ChessFuseBoxController" script and setup as follows:

      1. Set the "FuseBoxType" to the type of fuse box you wish this to be

      2. 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

      3. Add the fuse objects which will be parented and children of each of the fuse boxes

      4. Add the "Power Manager" object to this slot

      5. 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

  1. Add a set of Themed PBR fuse models to your scene - Setup as follows:

    1. Set the tag to "InteractiveObject"

    2. Set the layer to "Interact"

    3. Add a "Box Collider"

    4. Add the "AKItemController" script and set the system type to: "ChessSys"

    5. Add the "ChessItemController" script and set the item type to: "ChessFuse"

    6. Add the "ChessSingleFuseController" script and set the fuse to the corresponding fuse type

Door Controller Setup

  1. Add a set of fuse box prefabs to the scene

    1. Set the tag to "InteractiveObject"

    2. Set the layer to "Interact"

    3. Add a "Box Collider"

    4. Add the "AKItemController" script and set the system type to: "ChessSys"

    5. Add the "ChessItemController" script and set the item type to: "Fusebox"

    6. Add the "ChessFuseBoxController" script and setup as follows:

      1. Set the "FuseBoxType" to the type of fuse box you wish this to be

      2. 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

      3. Add the fuse objects which will be parented and children of each of the fuse boxes

      4. Add the "Power Manager" object to this slot

      5. 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