using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class animation : MonoBehaviour {
}
private Animator anim;
void start()
{
anim = GetComponent<Animator>();
}
void Update()
{
if (Input.Getkey(keyCode.leftArrom) || Input.Getkey(keyCode.RightArrom))
{
anim.SetBol("isRaning", true);
}
else
{
anim.SetBol("isRaning", false);
}