Тригер анімації
static Animator anim;
void Start () {
anim = GetComponent<Animator>();
}
void Update () {
if(Input.GetKey(KeyCode.D)){
anim.SetTrigger("jump");
}
}
static Animator anim;
void Start () {
anim = GetComponent<Animator>();
}
void Update () {
if(Input.GetKey(KeyCode.D)){
anim.SetTrigger("jump");
}
}