Error:
The animation state ShootPistol could not be played because it couldn’t be found!
Please attach an animation clip with the name ‘ShootPistol’ or call this function only for existing animations.
UnityEngine.Animation:CrossFade(String, Single)
GunAnimations:Update() (at Assets/Scripts/GunAnimations.js:6)
Script:
function Update () {
if(Input.GetMouseButtonDown(0))
{
animation.CrossFade("ShootPistol", 0.1);
}
}
SOmeone please help Idk wtf to do