Item component to make it accessible with the Inventory system.
More...
|
void | OnValidate () |
| Applies specified sprite automatically from sprite variable.
|
|
void | OnTriggerEnter2D (Collider2D other) |
| if something collides with it checks if object has inventory; tries to add item to it and disables itself if future reuse is needed
|
|
Item component to make it accessible with the Inventory system.
Definition at line 10 of file Item.cs.
◆ OnTriggerEnter2D()
void OnTriggerEnter2D |
( |
Collider2D | other | ) |
|
|
private |
if something collides with it checks if object has inventory; tries to add item to it and disables itself if future reuse is needed
- Parameters
-
Definition at line 32 of file Item.cs.
The documentation for this class was generated from the following file:
- C:/Users/christian.backstrom/Documents/Unity/FCV/FCV-Engine/Assets/Scripts/Inventory/Item.cs