diff options
author | chai <chaifix@163.com> | 2022-04-28 13:58:20 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-28 13:58:20 +0800 |
commit | 88a6b32e792910e11451da18eb5fb8c103235842 (patch) | |
tree | e64c5feaf46b7d06ae096e3719515c0cafc74dc5 /SurvivalTest/Assets/ACS-17/Demo_Table_Animations/Scripts/Actions.cs | |
parent | 072f02678d2c5d0d79f49e923b111c4a28da3f69 (diff) |
+misc
Diffstat (limited to 'SurvivalTest/Assets/ACS-17/Demo_Table_Animations/Scripts/Actions.cs')
-rw-r--r-- | SurvivalTest/Assets/ACS-17/Demo_Table_Animations/Scripts/Actions.cs | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/ACS-17/Demo_Table_Animations/Scripts/Actions.cs b/SurvivalTest/Assets/ACS-17/Demo_Table_Animations/Scripts/Actions.cs new file mode 100644 index 0000000..ae31627 --- /dev/null +++ b/SurvivalTest/Assets/ACS-17/Demo_Table_Animations/Scripts/Actions.cs @@ -0,0 +1,91 @@ +using UnityEngine; +using System.Collections; +//This script executes commands to change character animations +[RequireComponent (typeof (Animator))] +public class Actions : MonoBehaviour { + + private Animator animator; + void Awake () { + animator = GetComponent<Animator> (); + } + + public void Dead1() + { + animator.SetBool ("ACS_Dead1", true); + } + public void Dead2() + { + animator.SetBool ("ACS_Dead2", true); + } + public void Dead3() + { + animator.SetBool ("ACS_Dead3", true); + } + public void Dead4() + { + animator.SetBool ("ACS_Dead4", true); + } + public void StrafeLeft() + { + animator.SetBool ("ACS_StrafeLeft", true); + } + public void StrafeRight() + { + animator.SetBool ("ACS_StrafeRight", true); + } + public void Idle() + { + animator.SetBool ("ACS_Idle", true); + } + public void Idle2() + { + animator.SetBool ("ACS_Idle2", true); + } + public void Attack() + { + animator.SetBool ("ACS_Attack", true); + } + public void TurnLeft() + { + animator.SetBool ("ACS_TurnLeft", true); + } + public void TurnRight() + { + animator.SetBool ("ACS_TurnRight", true); + } + public void ChangeToWalk() + { + animator.SetBool ("ACS_ChangeToWalk", true); + } + public void ChangeToWeels() + { + animator.SetBool ("ACS_ChangeToWeels", true); + } + public void MoveWeelsForwad() + { + animator.SetBool ("ACS_MoveWeelsForwad", true); + } + public void MoveWeelsForwad2() + { + animator.SetBool ("ACS_MoveWeelsForwad2", true); + } + public void MoveWeelsBack() + { + animator.SetBool ("ACS_MoveWeelsBack", true); + } + public void WalkForwad() + { + animator.SetBool ("ACS_WalkForwad", true); + } + public void WalkForwad2() + { + animator.SetBool ("ACS_WalkForwad2", true); + } + public void WalkBack() + { + animator.SetBool ("ACS_WalkBack", true); + } + + + +} |