refactor: move all files into Study_One folder
This commit is contained in:
15
Study_One/Assets/PlayerAnimationEvents.cs
Normal file
15
Study_One/Assets/PlayerAnimationEvents.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayAnimationEvents : MonoBehaviour
|
||||
{
|
||||
private Player player;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
player = GetComponentInParent<Player>();
|
||||
}
|
||||
public void DamageEnemies() => player.DamageEnemies();
|
||||
private void DisableMovementAndJump() => player.EnableMovementAndJump(false);
|
||||
private void EnableMovementAndJump() => player.EnableMovementAndJump(true);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user