Ejemplo n.º 1
0
        private void EmitBullet()
        {
            //get bullet from pool, localPos rotate will be reset by default
            var bullet = GOPoolManager.Get <Bullet>(bulletEmitParent);

            bullet.Emit();
        }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     //Init Pool
     GOPoolManager.Init(bulletPrefab, 5);
 }
Ejemplo n.º 3
0
 private void PutToPool()
 {
     _isReady = false;
     GOPoolManager.Put(this);
 }