From 7669c3afcbd71f06233bce12bb521c582c07ee5b Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 9 Aug 2021 08:47:48 +0800 Subject: *misc --- Assets/Scripts/Unit/Component/UnitAnimation.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Assets/Scripts/Unit/Component/UnitAnimation.cs') diff --git a/Assets/Scripts/Unit/Component/UnitAnimation.cs b/Assets/Scripts/Unit/Component/UnitAnimation.cs index 44cfb08b..bbe4eb22 100644 --- a/Assets/Scripts/Unit/Component/UnitAnimation.cs +++ b/Assets/Scripts/Unit/Component/UnitAnimation.cs @@ -233,6 +233,8 @@ public class UnitAnimation : UnitComponent ToIdle, ToMove, ToAttack, + ToJump, + ToAirAttack, } public Animator animator { get { return m_Animator; } } @@ -325,4 +327,14 @@ public class UnitAnimation : UnitComponent m_Animator.SetTrigger(trigger.ToString()); } + public void AnimJump() + { + SetTrigger(ETrigger.ToJump); + } + + public void AnimAirAttack() + { + SetTrigger(ETrigger.ToAirAttack); + } + } -- cgit v1.1-26-g67d0