Skip to content
GabRay edited this page Jan 30, 2019 · 1 revision

Welcome to the Projet-S2 wiki!

Implement a new item

  • Clone the Bonuses/Example prefab, rename it and change its 3D model
  • In CollectibleController.cs, add your item to the enum ItemType
  • In ItemSpotController.cs, add your item and its rarity in the dictionary, and add a new case in the CreateNewItem() function.
  • Then, in CollectibleController's start, add a new case to instantiate your item, with the given durability
  • Finally, Create a new class which inherits from Item in ItemController.

Clone this wiki locally