Example #1
0
 protected virtual void Awake()
 {
     if (hitEffect != null)
     {
         GlobalObjectPool.TryAddPool(hitEffect, 5);
     }
 }
Example #2
0
 protected override void Awake()
 {
     base.Awake();
     GlobalObjectPool.TryAddPool(bulletPrefab, initialBulletCount);
 }