Ejemplo n.º 1
0
    public void PickUp(SoGun newGun)
    {
        if (_guns.Contains(newGun))
        {
            return;
        }

        _guns.Enqueue(newGun);

        _equippedGun = newGun.getGun();
        _equippedGun.Setup(this);
    }
Ejemplo n.º 2
0
 public MiniGun(GameObject bulletPrefab, SoGun type)
 {
     _bulletPrefab = bulletPrefab;
     _type         = type;
 }
Ejemplo n.º 3
0
 public StandardGun(GameObject bulletPrefab, SoGun type)
 {
     _bulletPrefab = bulletPrefab;
     _type         = type;
 }
Ejemplo n.º 4
0
 public RocketLauncher(GameObject bulletPrefab, SoGun type)
 {
     _bulletPrefab = bulletPrefab;
     _type         = type;
 }