Merge branch 'master' of https://github.com/SweetTini/GlobalGameJam2020
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user