![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
Custom collider component to make events from collider to be shown in inspector by using UnityEvents. More...
Private Member Functions | |
void | FireEvent (ref UnityEvent unityEvent, GameObject collidingObject) |
Fires of the designated event and checking if collidingObject is in layermask and if check items is true checks the inventory for correct items. | |
bool | CheckItems (Inventory inventory) |
Checks the inventory if the specified items are in inventory. | |
Custom collider component to make events from collider to be shown in inspector by using UnityEvents.
Definition at line 16 of file Custom2DCollider.cs.
|
private |
Checks the inventory if the specified items are in inventory.
inventory | Inventory to check against |
Definition at line 99 of file Custom2DCollider.cs.
|
private |
Fires of the designated event and checking if collidingObject is in layermask and if check items is true checks the inventory for correct items.
unityEvent | |
collidingObject |
Definition at line 80 of file Custom2DCollider.cs.