Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.MMMiniPoolableObject Class Reference

Add this class to an object that you expect to pool from an objectPooler. Note that these objects can't be destroyed by calling Destroy(), they'll just be set inactive (that's the whole point). More...

Inheritance diagram for MoreMountains.Feedbacks.MMMiniPoolableObject:

Public Member Functions

delegate void Events ()
 
virtual void Destroy ()
 Turns the instance inactive, in order to eventually reuse it. More...
 
virtual void TriggerOnSpawnComplete ()
 Triggers the on spawn complete event More...
 

Public Attributes

float LifeTime = 0f
 The life time, in seconds, of the object. If set to 0 it'll live forever, if set to any positive value it'll be set inactive after that time. More...
 

Protected Member Functions

virtual void OnEnable ()
 When the objects get enabled (usually after having been pooled from an ObjectPooler, we initiate its death countdown. More...
 
virtual void OnDisable ()
 When the object gets disabled (maybe it got out of bounds), we cancel its programmed death More...
 

Events

Events OnSpawnComplete
 

Detailed Description

Add this class to an object that you expect to pool from an objectPooler. Note that these objects can't be destroyed by calling Destroy(), they'll just be set inactive (that's the whole point).

Member Function Documentation

◆ Destroy()

virtual void MoreMountains.Feedbacks.MMMiniPoolableObject.Destroy ( )
virtual

Turns the instance inactive, in order to eventually reuse it.

◆ Events()

delegate void MoreMountains.Feedbacks.MMMiniPoolableObject.Events ( )

◆ OnDisable()

virtual void MoreMountains.Feedbacks.MMMiniPoolableObject.OnDisable ( )
protectedvirtual

When the object gets disabled (maybe it got out of bounds), we cancel its programmed death

◆ OnEnable()

virtual void MoreMountains.Feedbacks.MMMiniPoolableObject.OnEnable ( )
protectedvirtual

When the objects get enabled (usually after having been pooled from an ObjectPooler, we initiate its death countdown.

◆ TriggerOnSpawnComplete()

virtual void MoreMountains.Feedbacks.MMMiniPoolableObject.TriggerOnSpawnComplete ( )
virtual

Triggers the on spawn complete event

Member Data Documentation

◆ LifeTime

float MoreMountains.Feedbacks.MMMiniPoolableObject.LifeTime = 0f

The life time, in seconds, of the object. If set to 0 it'll live forever, if set to any positive value it'll be set inactive after that time.

Event Documentation

◆ OnSpawnComplete

Events MoreMountains.Feedbacks.MMMiniPoolableObject.OnSpawnComplete

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