示例#1
0
 void Awake()
 {
     pool   = new ObjectPrefabPool(DamageNumberPrefab, damageNumberParent, 5);
     timers = new GenericPool <UpdateTimer>(() => new UpdateTimer());
 }
示例#2
0
 void Awake()
 {
     popUpPool = new ObjectPrefabPool(PopUpPrefab, transform, 2);
     instance  = this;
 }
示例#3
0
 void Awake()
 {
     Instance    = this;
     DeadEnemies = new ObjectPrefabPool(DeadEnemyPrefab, DeadEnemyParent);
 }
示例#4
0
 void Awake()
 {
     FollowerPool = new ObjectPrefabPool(DisplayPrefab.gameObject, transform);
 }
示例#5
0
 void Awake()
 {
     Instance = this;
     Pool     = new ObjectPrefabPool(PointPrefab, Parent, 3);
 }
示例#6
0
 void Awake()
 {
     Instance = this;
     Pool     = new ObjectPrefabPool(ItemDropperPrefab, transform, 5);
 }