itsTripp / Platformer_Shooter

0 stars 3 forks source link

Add Audio to Weapons #38

Open AfterMath24 opened 2 years ago

AfterMath24 commented 2 years ago

I need to make audio events for the follow:

  1. Per Shot Sound
  2. Per Projectile Sound
  3. No Ammo Sound

Chance then will need to supply audio files for the weapons to use.

AfterMath24 commented 2 years ago

Added in UnityEvent invocations for the following weapon events:

  1. Equip
  2. Unequip
  3. FireShot
  4. ProjectileFire
  5. NoAmmo

We can use this to call a single AudioSource and run the function PlayOneShot. This allows a audio file to be selected to play from the given AudioSource when the event is invoked.

AfterMath24 commented 2 years ago

When designing weapons it is up to the weapon designer to implement audio attached to the appropriate event.