diff options
author | chai <chaifix@163.com> | 2020-11-16 14:38:55 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-16 14:38:55 +0800 |
commit | ac2b469bd76d7d91d10894184cbddad0796ce7bc (patch) | |
tree | cd17f7c3820d1ecd8dd5919292784a819d9c925e /Assets/Scripts/Avatar/Actions | |
parent | 6a9c951e2ccbf768c87ed4226565a7117c8e2747 (diff) |
*statecontroller
Diffstat (limited to 'Assets/Scripts/Avatar/Actions')
-rw-r--r-- | Assets/Scripts/Avatar/Actions/ActionJump.cs | 2 | ||||
-rw-r--r-- | Assets/Scripts/Avatar/Actions/ActionJumpForward.cs | 2 | ||||
-rw-r--r-- | Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Assets/Scripts/Avatar/Actions/ActionJump.cs b/Assets/Scripts/Avatar/Actions/ActionJump.cs index b281a7b3..364dd7de 100644 --- a/Assets/Scripts/Avatar/Actions/ActionJump.cs +++ b/Assets/Scripts/Avatar/Actions/ActionJump.cs @@ -7,7 +7,7 @@ public class ActionJump : ActionSwitchState {
private JumpState m_JumpState;
- public ActionJump(StateSystem system, JumpState jumpState)
+ public ActionJump(StateController system, JumpState jumpState)
: base(system, jumpState)
{
m_JumpState = jumpState;
diff --git a/Assets/Scripts/Avatar/Actions/ActionJumpForward.cs b/Assets/Scripts/Avatar/Actions/ActionJumpForward.cs index d130411f..2fb28dc4 100644 --- a/Assets/Scripts/Avatar/Actions/ActionJumpForward.cs +++ b/Assets/Scripts/Avatar/Actions/ActionJumpForward.cs @@ -7,7 +7,7 @@ public class ActionJumpForward : ActionSwitchState {
private JumpState m_JumpState;
- public ActionJumpForward(StateSystem system, JumpState jumpState)
+ public ActionJumpForward(StateController system, JumpState jumpState)
: base(system, jumpState)
{
m_JumpState = jumpState;
diff --git a/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs b/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs index 89327951..caa927c8 100644 --- a/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs +++ b/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs @@ -5,17 +5,17 @@ using UnityEngine; // 基础的切换 state public class ActionSwitchState : ActionBase { - StateSystem m_StateSystem; + StateController m_StateController; StateBase m_TargetState; - public ActionSwitchState(StateSystem stateSystem, StateBase targetState) + public ActionSwitchState(StateController stateSystem, StateBase targetState) { - m_StateSystem = stateSystem; + m_StateController = stateSystem; m_TargetState = targetState; } public override void Execute() { - m_StateSystem.SwitchToState(m_TargetState); + m_StateController.SwitchToState(m_TargetState); } } |