public MotorState_Hurt(PlayerTopDown3DController player, PlayerFeedbacks feedbacks) : base(player, feedbacks)
 {
     modules = new List <ModuleBase>()
     {
         new Module_Gravity(player, feedbacks),
         new Module_HurtKnockBack(player, feedbacks),
     };
 }
 public MotorStateBase(PlayerTopDown3DController player, PlayerFeedbacks feedback)
 {
     this.player   = player;
     this.feedback = feedback;
     motorStatus   = player.Status;
     raycaster     = player.Raycaster;
     settings      = CharacterSettings.instance;
 }
예제 #3
0
 public MotorState_MoveOnGround(PlayerTopDown3DController player, PlayerFeedbacks feedback) : base(player, feedback)
 {
     modules = new List <ModuleBase>()
     {
         new Module_Gravity(player, feedback),
         new Module_MoveOnGround(player, feedback),
         new Module_Jump(player, feedback),
         new Module_BasicAttack(player, feedback),
     };
 }
예제 #4
0
 public Module_HurtKnockBack(PlayerTopDown3DController motor, PlayerFeedbacks feedback) : base(motor, feedback)
 {
 }
예제 #5
0
 public Module_MoveInAir(PlayerTopDown3DController motor, PlayerFeedbacks feedback) : base(motor, feedback)
 {
 }
 public Module_BasicAttack(PlayerTopDown3DController motor, PlayerFeedbacks feedback) : base(motor, feedback)
 {
 }
 public Module_Gravity(PlayerTopDown3DController motor, PlayerFeedbacks feedback) : base(motor, feedback)
 {
 }
 public Module_Crouch(PlayerTopDown3DController motor, PlayerFeedbacks feedback) : base(motor, feedback)
 {
     collider       = motor.GetComponent <BoxCollider2D>();
     originalOffset = collider.offset;
     originalSize   = collider.size;
 }