From c5f145786f4c6d2fe4bea831dfc16e52228920a5 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Sun, 19 May 2024 16:05:01 +0800 Subject: * move --- GameCode/PlayerAttackAnimator.cs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 GameCode/PlayerAttackAnimator.cs (limited to 'GameCode/PlayerAttackAnimator.cs') diff --git a/GameCode/PlayerAttackAnimator.cs b/GameCode/PlayerAttackAnimator.cs deleted file mode 100644 index 10407a6..0000000 --- a/GameCode/PlayerAttackAnimator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; - -public class PlayerAttackAnimator : MonoBehaviour -{ - public List animations = new List(); - - private ManualAttack playerAttack; - - public void AssignAttack(ManualAttack attack) - { - playerAttack = attack; - playerAttack.onAttack.AddListener(TriggerAnimations); - } - - private void TriggerAnimations() - { - if (!base.gameObject.activeInHierarchy) - { - return; - } - foreach (OneShotAnimationBase animation in animations) - { - animation.Trigger(); - } - } -} -- cgit v1.1-26-g67d0