Hi all,
I’m fairly new to Unity, altho I do have some programming experience. I’ll also admit my understanding of the basics of coding in unity is still being pieced together, however this is the problem i’m having(any help would be greatly appreciated)
var speed= 3.0;
var rotateSpeed= 3.0;
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
transform.Rotate(0, Input.GetAxis("Horizontal") * rotateSpeed, 0);
var forward=transform.TransformDirection(Vector3.forward);
var curSpeed= speed *Input.GetAxis("Vertical");
controller.SimpleMove(forward * curSpeed);
if (Input.GetAxis("Vertical") > 0.4)
animation.CrossFade ("run");
else
animation.CrossFade ("idle");
if (Input.GetButtonDown ("QuickStrike"))
animation.CrossFade("1HAtt1");
}
@script RequireComponent(CharacterController)
The problem is, my animation for 1HAtt1, stops midway. how might i fix this?