Exemplo n.º 1
0
 private void Awake()
 {
     Instance = this;
     if (_parentForObjects == null)
     {
         _parentForObjects = transform;
     }
     CreatePools(_poolsOnStart);
 }
Exemplo n.º 2
0
 private void Start()
 {
     _pooling = ObjectPooling.Instance;
     _pooling.CreatePools(_localPool);
     _timer = _spawnerTimeInervals;
 }