예제 #1
0
 public ModificationMuffler(AudioSource audioSource, IMuffler muffler, Vector3 mufflerPosition,
                            WeaponDefaultCharacteristics defaultCharacteristics)
 {
     _audioSource            = audioSource;
     _muffler                = muffler;
     _mufflerPosition        = mufflerPosition;
     _defaultCharacteristics = defaultCharacteristics;
 }
예제 #2
0
파일: Weapon.cs 프로젝트: prazdni/Unity4
        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;
        }