Playground by Górka Mateusz
Goo.Tools.Pooling.ObjectPoolerBase Class Reference
+ Inheritance diagram for Goo.Tools.Pooling.ObjectPoolerBase:
+ Collaboration diagram for Goo.Tools.Pooling.ObjectPoolerBase:

Static Public Attributes

const string PREFIX_NAME = "[Pooling] "
 

Protected Member Functions

virtual void Awake ()
 

Protected Attributes

GameObject _prefab
 
Transform _parent
 

Member Function Documentation

◆ Awake()

virtual void Goo.Tools.Pooling.ObjectPoolerBase.Awake ( )
inlineprotectedvirtual
15 {
16 if (_prefab == null)
17 throw new NullReferenceException("Prefab to pool is null");
18
19 if (_parent == null)
20 {
21 var parent = new GameObject($"{PREFIX_NAME}{_prefab.name}");
22 _parent = parent.transform;
23 }
24 }
Transform _parent
Definition: ObjectPoolerBase.cs:12
GameObject _prefab
Definition: ObjectPoolerBase.cs:10

Member Data Documentation

◆ PREFIX_NAME

const string Goo.Tools.Pooling.ObjectPoolerBase.PREFIX_NAME = "[Pooling] "
static

◆ _prefab

GameObject Goo.Tools.Pooling.ObjectPoolerBase._prefab
protected

◆ _parent

Transform Goo.Tools.Pooling.ObjectPoolerBase._parent
protected

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