using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class OneCSControl : MonoBehaviour
{private Animator anim;// Start is called before the first frame updatevoid Start(){anim = GetComponent<Animator>();}// Update is called once per framevoid Update(){if (Input.GetKeyDown(KeyCode.Alpha0)){anim.SetInteger("n", 0);}else if (Input.GetKeyDown(KeyCode.Alpha1)){anim.SetInteger("n", 1);}else if (Input.GetKeyDown(KeyCode.Alpha2)){anim.SetInteger("n", 2);}else if (Input.GetKeyDown(KeyCode.Alpha3)){anim.SetInteger("n", 3);}else if (Input.GetKeyDown(KeyCode.Alpha4)){anim.SetInteger("n", 4);}}
}