I’m toward the end of the Combat course in the RPG bundle, in the final polish section where I’ve overhauled my models. Something’s gone wrong on my player prefab, though, because now when I play the game and attack someone, it says:
Can not play a disabled audio source
UnityEngine.Events.UnityEvent:Invoke ()
RPG.Combat.Weapon:OnHit () (at Assets/Scripts/Combat/Weapon.cs:13)
RPG.Combat.Fighter:Hit () (at Assets/Scripts/Combat/Fighter.cs:86)
–
Here is a screenshot of my Equipped Unarmed prefab, although this is happening no matter which weapon I equip.
The weird thing is, this is only affecting my player. The Archer prefab and a wolf prefab all make their attack and damage/die sounds properly. They all derive from the same character prefab. I even tried deleting my Player prefab and recreating it as a fresh variant of the Character prefab, but the same thing occurs.
Here’s a look at my Player prefab: