FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
Item Class Reference

Item component to make it accessible with the Inventory system. More...

Inheritance diagram for Item:

Private Member Functions

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
 

Detailed Description

Item component to make it accessible with the Inventory system.

Definition at line 10 of file Item.cs.

Member Function Documentation

◆ 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
other

Definition at line 32 of file Item.cs.


The documentation for this class was generated from the following file: