From ac2b469bd76d7d91d10894184cbddad0796ce7bc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 16 Nov 2020 14:38:55 +0800 Subject: *statecontroller --- Assets/Scripts/Test/SaionjiScript_States.cs | 46 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'Assets/Scripts/Test/SaionjiScript_States.cs') 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 { 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 -- cgit v1.1-26-g67d0