This commit is contained in:
Sweet Tini
2020-02-01 11:51:34 -05:00
10 changed files with 170 additions and 23 deletions

View File

@@ -40,7 +40,7 @@ public class Player : MonoBehaviour
private void Jump()
{
// Jump
if (Input.GetKey(KeyCode.Space) && IsPlayerOnGround())
if (Input.GetKeyDown(KeyCode.Space) && IsPlayerOnGround())
{
rigidBody.velocity += new Vector2(0, jumpSpeed);
rigidBody.velocity = new Vector2(rigidBody.velocity.x,