Answer the question
In order to leave comments, you need to log in
Was a class, delegate, enum, interface, or struct expected?
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);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question