Exemplo n.º 1
0
    private Bullet CreateBulletPrefab(BulletType _bulletType)
    {
        Bullet bulletPoolObj = PoolableObject.CreateNewPoolableObject <Bullet>(this.transform, "Bullet");

        bulletPoolObj.InitBullet(_bulletType, IsAllyBullet);

        bulletShootPeriod = bulletPoolObj.bulletInfo.shootPeriod;
        return(bulletPoolObj);
    }