summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/SaionjiScript_States.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-11-16 14:38:55 +0800
committerchai <chaifix@163.com>2020-11-16 14:38:55 +0800
commitac2b469bd76d7d91d10894184cbddad0796ce7bc (patch)
treecd17f7c3820d1ecd8dd5919292784a819d9c925e /Assets/Scripts/Test/SaionjiScript_States.cs
parent6a9c951e2ccbf768c87ed4226565a7117c8e2747 (diff)
*statecontroller
Diffstat (limited to 'Assets/Scripts/Test/SaionjiScript_States.cs')
-rw-r--r--Assets/Scripts/Test/SaionjiScript_States.cs46
1 files changed, 23 insertions, 23 deletions
diff --git a/Assets/Scripts/Test/SaionjiScript_States.cs b/Assets/Scripts/Test/SaionjiScript_States.cs
index 0176b976..0c733cd6 100644
--- a/Assets/Scripts/Test/SaionjiScript_States.cs
+++ b/Assets/Scripts/Test/SaionjiScript_States.cs
@@ -90,28 +90,28 @@ public partial class SaionjiScript : Avatar
ActionTowardLeft towardLeft = new ActionTowardLeft(this.transform);
ActionTowardRight towardRight = new ActionTowardRight(this.transform);
- ActionJump toJump = new ActionJump(m_StateSystem, jump);
- ActionJumpForward toJumpForward = new ActionJumpForward(m_StateSystem, jump);
-
- ActionSwitchState switchToMove = new ActionSwitchState(m_StateSystem, move);
- ActionSwitchState switchToIdle = new ActionSwitchState(m_StateSystem, idle);
- ActionSwitchState switchToAttk1 = new ActionSwitchState(m_StateSystem, attk1);
- ActionSwitchState switchToAttk2 = new ActionSwitchState(m_StateSystem, attk2);
- ActionSwitchState switchToAttk3 = new ActionSwitchState(m_StateSystem, attk3);
- ActionSwitchState switchToAttk4 = new ActionSwitchState(m_StateSystem, attk4);
- ActionSwitchState switchToAttk5 = new ActionSwitchState(m_StateSystem, attk5);
- ActionSwitchState switchToAttkRush = new ActionSwitchState(m_StateSystem, attkRush);
- ActionSwitchState switchToSideKick = new ActionSwitchState(m_StateSystem, sideKick);
- ActionSwitchState switchToSideKickRush = new ActionSwitchState(m_StateSystem, sideKickRush);
- ActionSwitchState switchToDash = new ActionSwitchState(m_StateSystem, dash);
- ActionSwitchState switchToSuperKick = new ActionSwitchState(m_StateSystem, superKick);
- ActionSwitchState switchToGun1 = new ActionSwitchState(m_StateSystem, gun1);
- ActionSwitchState switchToGun2 = new ActionSwitchState(m_StateSystem, gun2);
- ActionSwitchState switchToGun3 = new ActionSwitchState(m_StateSystem, gun3);
- ActionSwitchState switchToGun4 = new ActionSwitchState(m_StateSystem, gun4);
-
- ActionSwitchState switchToAirDash = new ActionSwitchState(m_StateSystem, airDash);
- ActionSwitchState switchToAirAttk1 = new ActionSwitchState(m_StateSystem, airAttk1);
+ ActionJump toJump = new ActionJump(m_StateController, jump);
+ ActionJumpForward toJumpForward = new ActionJumpForward(m_StateController, jump);
+
+ ActionSwitchState switchToMove = new ActionSwitchState(m_StateController, move);
+ ActionSwitchState switchToIdle = new ActionSwitchState(m_StateController, idle);
+ ActionSwitchState switchToAttk1 = new ActionSwitchState(m_StateController, attk1);
+ ActionSwitchState switchToAttk2 = new ActionSwitchState(m_StateController, attk2);
+ ActionSwitchState switchToAttk3 = new ActionSwitchState(m_StateController, attk3);
+ ActionSwitchState switchToAttk4 = new ActionSwitchState(m_StateController, attk4);
+ ActionSwitchState switchToAttk5 = new ActionSwitchState(m_StateController, attk5);
+ ActionSwitchState switchToAttkRush = new ActionSwitchState(m_StateController, attkRush);
+ ActionSwitchState switchToSideKick = new ActionSwitchState(m_StateController, sideKick);
+ ActionSwitchState switchToSideKickRush = new ActionSwitchState(m_StateController, sideKickRush);
+ ActionSwitchState switchToDash = new ActionSwitchState(m_StateController, dash);
+ ActionSwitchState switchToSuperKick = new ActionSwitchState(m_StateController, superKick);
+ ActionSwitchState switchToGun1 = new ActionSwitchState(m_StateController, gun1);
+ ActionSwitchState switchToGun2 = new ActionSwitchState(m_StateController, gun2);
+ ActionSwitchState switchToGun3 = new ActionSwitchState(m_StateController, gun3);
+ ActionSwitchState switchToGun4 = new ActionSwitchState(m_StateController, gun4);
+
+ ActionSwitchState switchToAirDash = new ActionSwitchState(m_StateController, airDash);
+ ActionSwitchState switchToAirAttk1 = new ActionSwitchState(m_StateController, airAttk1);
ActionWipeCmdRecord wipeCmdRecord = new ActionWipeCmdRecord();
@@ -376,7 +376,7 @@ public partial class SaionjiScript : Avatar
trigger = new Trigger(new ConditionMotionAtEnd(animator, Anim_AirAttack1), new List<ActionBase> { new ActionSetVelocity(m_Body, Vector3.zero), new ActionUseGravity(m_Body), toJump});
airAttk1.AddTrigger(trigger);
- m_StateSystem.ForceStart(idle);
+ m_StateController.ForceStart(idle);
}
} \ No newline at end of file