using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterAnim : MonoBehaviour
{
private Animator anim;
void Start(){
anim - GetComponent<Animator>();
}
void Update(){
if(Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.RightArrow)){
anim.SetBool("isWalk", true);
} else {
anim.SetBool("isWalk", false);
}
}
}