Method AddItem
| Improve this Doc View SourceAddItem(CustomItem)
Add a CustomItem to the game.
Checks if the custom item is valid and unique and adds it to the list of custom items.
Also adds the prefab of the custom item to the PrefabManager.
Custom items are added to the current ObjectDB on every ObjectDB.Awake.
Checks if the custom item is valid and unique and adds it to the list of custom items.
Also adds the prefab of the custom item to the PrefabManager.
Custom items are added to the current ObjectDB on every ObjectDB.Awake.
Declaration
public bool AddItem(CustomItem customItem)
Parameters
Type | Name | Description |
---|---|---|
CustomItem | customItem | The custom item to add. |
Returns
Type | Description |
---|---|
bool | true if the custom item was added to the manager. |