using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerAnimationHandler : MonoBehaviour { Animator animator; void Start() { animator = GetComponentInChildren(); } void Update() { if (Input.GetKeyDown(KeyCode.D)) Run(); if (Input.GetKeyDown(KeyCode.Space)) Mop(); } public void Idle() { } public void Run() { } public void Swing() { } public void Mop() { } }