using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnimatorControl : MonoBehaviour { Animator m_Animator; // Use this for initialization void Start () { //Debug.Log("test"); m_Animator = gameObject.GetComponent(); } // Update is called once per frame void Update() { if (Input.GetKey("0")) { //Debug.Log("1"); m_Animator.SetInteger("move", 0); } if (Input.GetKey("1")) { //Debug.Log("1"); m_Animator.SetInteger("move", 1); } if (Input.GetKey("2")) { //Debug.Log("1"); m_Animator.SetInteger("move", 2); } } }