JUtils
A unity utilities library
JUtils.PoolItem Class Reference

A behaviour that is used with the ObjectPool. Other behaviours can listen to the events this class sends. More...

Inheritance diagram for JUtils.PoolItem:
Collaboration diagram for JUtils.PoolItem:

Public Member Functions

void ReturnToPool ()
 

Properties

ObjectPool objectPool [get, set]
 
bool isActive [get]
 

Events

Action< PoolItemonSpawn
 
Action< PoolItemonDespawn
 

Detailed Description

A behaviour that is used with the ObjectPool. Other behaviours can listen to the events this class sends.

Member Function Documentation

◆ ReturnToPool()

void JUtils.PoolItem.ReturnToPool ( )
inline

Property Documentation

◆ isActive

bool JUtils.PoolItem.isActive
get

◆ objectPool

ObjectPool JUtils.PoolItem.objectPool
getset

Event Documentation

◆ onDespawn

Action<PoolItem> JUtils.PoolItem.onDespawn

◆ onSpawn

Action<PoolItem> JUtils.PoolItem.onSpawn

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