using System.Collections; using System.Collections.Generic; using UnityEngine; public class anim01 : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { float j = Input.GetAxis("Jump"); if (j > 0.1f) { GetComponent().SetInteger("Jump", 1); } else { GetComponent().SetInteger("Jump", 0); } float h = Input.GetAxis("Horizontal"); Debug.Log(h); float v = Input.GetAxis("Vertical"); if (v > 0.1f) { GetComponent().SetFloat("Speed", v); GetComponent().SetFloat("Blend", h); } if(Input.GetKeyDown(KeyCode.E)) { GetComponent().SetBool("wave", true); } if(Input.GetKeyUp(KeyCode.E)) { GetComponent().SetBool("wave", false); } } }