| | |
| | | using UnityEngine; |
| | | using UnityEngine.Experimental.Director; |
| | | |
| | | public class HorseIdle_6 : SMB_Base { |
| | | public class HorseIdle_6 : SMB_Base |
| | | { |
| | | |
| | | protected override void OnEnter(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { |
| | | protected override void OnEnter(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
| | | { |
| | | base.OnEnter(owner, animator, stateInfo, layerIndex); |
| | | |
| | | if (owner.NextAction == GAStaticDefine.Act_HorseIdleTransfer) |
| | | { |
| | | if (stateInfo.shortNameHash == GAStaticDefine.State_HorseIdleHash) |
| | | { |
| | | owner.NextAction = GAStaticDefine.Act_HorseIdle; |
| | | }else if(stateInfo.shortNameHash == GAStaticDefine.State_HorseIdle1Hash) |
| | | { |
| | | owner.NextAction = GAStaticDefine.Act_HorseIdle1; |
| | | }else if(stateInfo.shortNameHash == GAStaticDefine.State_HorseIdle2Hash) |
| | | { |
| | | owner.NextAction = GAStaticDefine.Act_HorseIdle2; |
| | | }else if(stateInfo.shortNameHash == GAStaticDefine.State_HorseIdle3Hash) |
| | | { |
| | | owner.NextAction = GAStaticDefine.Act_HorseIdle3; |
| | | }else if(stateInfo.shortNameHash == GAStaticDefine.State_HorseIdle4Hash) |
| | | { |
| | | owner.NextAction = GAStaticDefine.Act_HorseIdle4; |
| | | } |
| | | } |
| | | } |
| | | |
| | | protected override void OnUpdate(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { |
| | | protected override void OnUpdate(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
| | | { |
| | | base.OnUpdate(owner, animator, stateInfo, layerIndex); |
| | | } |
| | | |
| | | protected override void OnExit(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { |
| | | protected override void OnExit(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
| | | { |
| | | base.OnExit(owner, animator, stateInfo, layerIndex); |
| | | } |
| | | } |