♟️
Chess Puzzle System - Doc
  • Chess Puzzle Sys - Introduction
  • ⭐Getting Started
    • Quick Start
    • Detailed Setup
  • ❓Support
    • FAQ
    • Power Up Event
    • Adding Audioclips
    • System Namespace
    • Adding More Fuses / Boxes
    • Using Different Character Controller
    • Where are inputs located?
    • Root GameObject warning?
    • Fuse Spawn Offset / Rotation
  • 🌀Development
    • Patch Notes - V1.4
    • Roadmap
  • 📧Contacts
    • Contact Me
    • My Other Assets
Powered by GitBook
On this page
  1. Support

Adding More Fuses / Boxes

PreviousSystem NamespaceNextUsing Different Character Controller

Last updated 2 years ago

Adding Additional Collectable Fuses:

  • Add your 3D Object that will act as a fuse to collect

  • Give this a tag of "InteractiveObject"

  • Give this object a "Box Collider"

  • Add a "CPItem" script and set this to "Chess Fuse"

  • Add a "CPFuseCollectable" script

    • Set the ChessPieceScriptable to a new SO you will create (See below)

    • Add the sound effect you desire

Creating a new ScriptableObject Fuse:

  • Visit the "ScriptableObjects" folder and find "ChessPieces":

  • Duplicate a current fuse and rename it

  • Click on this new SO and add:

    • A sprite so it can be used in the inventory

    • A prefab which will spawn in the fuse box

Adding another Fuse Box:

  • Duplicated a pre existing fuse box and make sure the setup is as below:

    • Give this an "InteractiveObject" tag

    • Add a "Box Collider"

    • Add a "CPItem" script and set this to "Fusebox"

    • Add a "CPFuseBoxInteractable" script

      • Add the Chess Piece Scriptable that will go with this Fusebox

      • Choose whether to have one inside it at the start

      • Add the empty GameObject as the spawn location of the fuse

      • Add the fuse light which will be a child of this object

      • Add the power manager that corresponds to your current set

      • Add an audio effect

❓