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