diff options
author | chai <chaifix@163.com> | 2020-10-14 22:05:02 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-14 22:05:02 +0800 |
commit | 0d221e6c05d59d812d494f05b9916d85650032eb (patch) | |
tree | 8d8274e25f956e26b7d5be9f29c620bae721307a /Assets/Scripts/Test/SaionjiScript_Anim.cs | |
parent | 11a29ca87429b2b8005777463d3c98fd376e4a24 (diff) |
+action
Diffstat (limited to 'Assets/Scripts/Test/SaionjiScript_Anim.cs')
-rw-r--r-- | Assets/Scripts/Test/SaionjiScript_Anim.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Assets/Scripts/Test/SaionjiScript_Anim.cs b/Assets/Scripts/Test/SaionjiScript_Anim.cs new file mode 100644 index 00000000..08322b61 --- /dev/null +++ b/Assets/Scripts/Test/SaionjiScript_Anim.cs @@ -0,0 +1,28 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public partial class SaionjiScript : MonoBehaviour +{ + int Anim_Idle; + int Anim_Run; + int Anim_RunStop; + int Anim_LightAttack1; + int Anim_LightAttack2; + int Anim_LightAttack3; + int Anim_LightAttack4; + int Anim_LightAttack5; + + void GetAnimHash() + { + Anim_Idle = Animator.StringToHash("Idle_Assassin"); + Anim_Run = Animator.StringToHash("Run_Sword_Fast"); + + Anim_LightAttack1 = Animator.StringToHash("Light_Attk_1"); + Anim_LightAttack2 = Animator.StringToHash("Light_Attk_2"); + Anim_LightAttack3 = Animator.StringToHash("Light_Attk_3"); + Anim_LightAttack4 = Animator.StringToHash("Light_Attk_4"); + Anim_LightAttack5 = Animator.StringToHash("Light_Attk_5"); + } + +} |