Hello guys I have a problem with animation when I press key who have animation it all stops I don't know what to do please help
Code:
using UnityEngine;
using System.Collections;
public class AnimationScript : MonoBehaviour {
void Update(){
if (Input.GetKeyDown (KeyCode.K)) {
animation.Play("Walking animation", AnimationPlayMode);
}
}
}
|
|