using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Animaciones : MonoBehaviour {
void Update()
{
if (Input.GetAxis(«Horizontalusing System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Animaciones : MonoBehaviour {
void Update()
{
if (Input.GetAxis(«Horizontal»)>0)
{
Animator anim = GetComponent();
if (null != anim)
{
Debug.Log(«Playing anim»);
anim.Play(«walk»);
}
}
else
{
Animator anim = GetComponent();
if (null != anim)
{
Debug.Log(«Playing anim»);
anim.Play(«idle»);
}
}
}
}

«)>0)
{
Animator anim = GetComponent();
if (null != anim)
{
Debug.Log(«Playing anim»);
anim.Play(«walk»);
}
}
else
{
Animator anim = GetComponent();
if (null != anim)
{
Debug.Log(«Playing anim»);
anim.Play(«idle»);
}
}
}
}

https://youtube.com/inteligenciafutura