using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player : MonoBehaviour {
public Animator anim;
private Float inputH;
private Float inputV;
// Start is called before the first frame update
void Start()
{
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
if(Input.GetKeyDown("w");
{
anim.Play("HumanoidIdle,-1,0f);
}
}
inputH = Input.GetAxis("Horizontal");
inputV = Input.GetAxsis("vertical");
anim.SetFloat("inputH",inputH);
anim.SetFloat("inputV",inputV);
}
}