Click or drag to resize

PooledGameObject Class

The base class for pooled objects.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.Utils.ObjectPoolingPooledGameObject
            RavingBots.MagicGestures.ControllerGestureTrail
            RavingBots.MagicGestures.Game.MagicMagicEffect

Namespace:  RavingBots.MagicGestures.Utils.ObjectPooling
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class PooledGameObject : MonoBehaviour, 
	IPooledObject

The PooledGameObject type exposes the following members.

Constructors
  NameDescription
Protected methodPooledGameObject
Initializes a new instance of the PooledGameObject class
Top
Properties
  NameDescription
Public propertyPool
The pool this object belongs to. Objects cannot be shared between different pools.
Public propertyQueued
if the object is currently unused and waiting in the pool.
Top
Methods
  NameDescription
Protected methodAwake
Reset this instance to the pristine state.
Protected methodResetState
Reset this instance to the pristine state.
Public methodRevoke
Reset this instance and then return it to its pool.
Top
Remarks
Contains the shared code for all pooled objects.
See Also