Player Data

The PlayerData class is a crucial part of the 2D platformer-sidescroller controller asset. It stores all the necessary variables and data related to the player's actions and states. By encapsulating these variables in separate classes, the PlayerData class ensures that the project remains organized and maintainable. The class is divided into several sub-classes, each responsible for storing variables related to specific player actions or states:

  1. PhysicsVariables

  2. WalkVariables

  3. CrouchVariables

  4. JumpVariables

  5. LandVariables

  6. DashVariables

  7. WallMovementVariables

Last updated