Пример #1
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of ProjectilePool found!");
         return;
     }
     instance = this;
 }
Пример #2
0
 private void Awake()
 {
     objectPool = GetComponent <EnemyProjectilePool>();
 }