public BulletController GetBulletFromPool(BulletScriptableObject _bulletProperties, Vector3 _position) { bulletProperties = _bulletProperties; position = _position; BulletController bullet = GetItem(); bullet.Initialise(_position); return(bullet); }
public BulletController(BulletScriptableObject _bulletProperties, BulletPool _parentPool) { view = GameObject.Instantiate <BulletView>(_bulletProperties.bulletPrefab, Vector3.zero, Quaternion.identity); parentPool = _parentPool; }