fgm24/Assets/Scripts/Player/PlayerAnimationHandler.cs

37 lines
549 B
C#
Raw Normal View History

2024-02-03 11:42:50 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerAnimationHandler : MonoBehaviour
{
Animator animator;
void Start()
{
animator = GetComponentInChildren<Animator>();
}
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()
{
}
}