37 lines
549 B
C#
37 lines
549 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|