Esempio n. 1
0
 public ModificationMuffler(AudioSource audioSource, IMuffler muffler, Vector3 mufflerPosition,
                            WeaponDefaultCharacteristics defaultCharacteristics)
 {
     _audioSource            = audioSource;
     _muffler                = muffler;
     _mufflerPosition        = mufflerPosition;
     _defaultCharacteristics = defaultCharacteristics;
 }
Esempio n. 2
0
        public Weapon(IAmmunition bullet, Transform barrelPosition, float force, float volume, AudioSource audioSource,
                      AudioClip audioClip)
        {
            _bullet         = bullet;
            _barrelPosition = barrelPosition;

            WeaponDefaultCharacteristics = new WeaponDefaultCharacteristics(force, volume, audioClip, audioSource);

            _force       = force;
            _volume      = volume;
            _audioSource = audioSource;
            _audioClip   = audioClip;
        }