- Clone the Project
- Extract the Zip File
- Either:
- Import the a PlayerData and Player Movement script into your project
- Or Open the Project in Unity
🦘To Create a New Player🦘
- Create a new GameObject
- Add a BoxCollider (or another of your choice) and a RigidBody2D
- Add a PlayerMovement Script
- Create a Ground Check GameObject as a child to the player and position at their feet (do the same for two Wall Check GameObjects and positon on the player's sides)
📋To Create a New Player Data 📋
- In the project window, right-click -> create -> Player Data (at the top)
- Now edit the parameters as you like (read the script for more info on each variable)
- Drag and Drop it into the appropriate slot in the player, and you're good to go 🎉