public SwordCharaterState(SPlayer swordCharacter, SPlayerStateMachine statemachine,
                           SPlayerData swordCharacterData, string animBoolName)
 {
     SwordCharacter            = swordCharacter;
     SwordCharaterStateMachine = statemachine;
     SwordCharacterData        = swordCharacterData;
     _animBoolName             = animBoolName;
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     StateMachine    = new SPlayerStateMachine();
     InputHandler    = GetComponent <SwordCharacterInputHandler>();
     IdleState       = new SPlayerIdleState(this, StateMachine, _SPlayerData, "idle");
     MoveState       = new SPlayerMoveState(this, StateMachine, _SPlayerData, "move");
     JumpState       = new SPlayerJumpState(this, StateMachine, _SPlayerData, "inAir");
     AirState        = new SPlayerAirState(this, StateMachine, _SPlayerData, "inAir");
     LandState       = new SPlayerLandState(this, StateMachine, _SPlayerData, "land");
     WallSlideState  = new SPlayerWallSlideState(this, StateMachine, _SPlayerData, "wallSlide");
     WallGrabState   = new SPlayerWallGrabState(this, StateMachine, _SPlayerData, "wallGrab");
     WallClimbState  = new SPlayerWallClimbState(this, StateMachine, _SPlayerData, "wallClimb");
     WallJumpState   = new SPlayerWallJumpState(this, StateMachine, _SPlayerData, "inAir");
     LedgeCLimbState = new SPlayerLedgeClimbState(this, StateMachine, _SPlayerData, "ledgeClimb");
     AirDashState    = new SPlayerAirDashState(this, StateMachine, _SPlayerData, "inAir");
     DashState       = new SPlayerDashState(this, StateMachine, _SPlayerData, "groundDash");
 }
 public SPlayerWallClimbState(SPlayer swordCharacter, SPlayerStateMachine statemachine, SPlayerData swordCharacterData, string animBoolName) : base(swordCharacter, statemachine, swordCharacterData, animBoolName)
 {
 }
Ejemplo n.º 4
0
 public SPlayerAirDashState(SPlayer swordCharacter, SPlayerStateMachine statemachine, SPlayerData swordCharacterData, string _animBoolName) : base(swordCharacter, statemachine, swordCharacterData, _animBoolName)
 {
 }
Ejemplo n.º 5
0
 public SPlayerJumpState(SPlayer swordCharacter, SPlayerStateMachine statemachine, SPlayerData swordCharacterData, string _animBoolName) : base(swordCharacter, statemachine, swordCharacterData, _animBoolName)
 {
     _amountsOfJumpsLeft = swordCharacterData.AmountOfJumps;
 }