예제 #1
0
        public BulletController GetBulletFromPool(BulletScriptableObject _bulletProperties, Vector3 _position)
        {
            bulletProperties = _bulletProperties;
            position         = _position;
            BulletController bullet = GetItem();

            bullet.Initialise(_position);
            return(bullet);
        }
예제 #2
0
 public BulletController(BulletScriptableObject _bulletProperties, BulletPool _parentPool)
 {
     view       = GameObject.Instantiate <BulletView>(_bulletProperties.bulletPrefab, Vector3.zero, Quaternion.identity);
     parentPool = _parentPool;
 }