So, sounds like you have two game objects, Mace and Melee. You have a script attached to the Melee game object, and the error you get is when this script uses the `Play()` API. It sounds like the animation is on your Mace object, so, your script needs to find the Mace object, and tell it to play the animation. To do this, in the Melee script code, add a GameObject, and in the inspector drop the Mace object onto it. Your Melee script can now see the Mace object. Then call `animation.Play("MaceAttack")` on the Mace game object.
↧