diff options
author | chai <chaifix@163.com> | 2020-11-16 08:30:54 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-16 08:30:54 +0800 |
commit | f325841eff10ae492ce6c634d4b07cf058a068c6 (patch) | |
tree | 980d81a4b87d571fcb893fc44f8809af97466bca /Assets/Scripts/Test/ArmorSoldierScript_Anim.cs | |
parent | be3ca8b172f22ce7c4c4316745e0df05de58b069 (diff) |
*state system
Diffstat (limited to 'Assets/Scripts/Test/ArmorSoldierScript_Anim.cs')
-rw-r--r-- | Assets/Scripts/Test/ArmorSoldierScript_Anim.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Assets/Scripts/Test/ArmorSoldierScript_Anim.cs b/Assets/Scripts/Test/ArmorSoldierScript_Anim.cs new file mode 100644 index 00000000..cf21a504 --- /dev/null +++ b/Assets/Scripts/Test/ArmorSoldierScript_Anim.cs @@ -0,0 +1,31 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public partial class ArmorSoldierScript : Avatar, IInteractable +{ + int Anim_Idle; + + int Anim_HurtFront; + + int Anim_LightHurt; + int Anim_MidiumHurt; + int Anim_HeavyHurt; + int Anim_GroundHurt; + int Anim_AirHurt; + + + void SetupAnim() + { + Anim_Idle = Animator.StringToHash("Idle"); + + Anim_HurtFront = Animator.StringToHash("Hurt_Front"); + Anim_LightHurt = Animator.StringToHash("Hurt_Light"); + Anim_MidiumHurt = Animator.StringToHash("Hurt_Midium"); + Anim_HeavyHurt = Animator.StringToHash("Hurt_Heavy"); + Anim_GroundHurt = Animator.StringToHash("Hurt_Ground"); + Anim_AirHurt = Animator.StringToHash("Hurt_Air"); + + } + +}
\ No newline at end of file |