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

Custom collider component to make events from collider to be shown in inspector by using UnityEvents. More...

Inheritance diagram for Custom2DCollider:

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.
 

Detailed Description

Custom collider component to make events from collider to be shown in inspector by using UnityEvents.

Definition at line 16 of file Custom2DCollider.cs.

Member Function Documentation

◆ CheckItems()

bool CheckItems ( Inventory inventory)
private

Checks the inventory if the specified items are in inventory.

Parameters
inventoryInventory to check against
Returns

Definition at line 99 of file Custom2DCollider.cs.

◆ FireEvent()

void FireEvent ( ref UnityEvent unityEvent,
GameObject collidingObject )
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.

Parameters
unityEvent
collidingObject

Definition at line 80 of file Custom2DCollider.cs.


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