Commit 1653dd38 authored by HOCQUETTE Thibaut's avatar HOCQUETTE Thibaut
Browse files

escape

parent 656268da
......@@ -25,6 +25,9 @@ public class PlayerMovement : MonoBehaviour
rb.velocity = new Vector3(rb.velocity.x,jumpForce,rb.velocity.z);
}
if (Input.GetKey(KeyCode.Escape)) {
SceneManager.LoadScene("MainMenu");
}
if (Input.GetAxisRaw("Horizontal") != 0)
{
Vector3 Newposition = new Vector3(this.transform.position.x + speed * Time.deltaTime * Input.GetAxisRaw("Horizontal"), this.transform.position.y, 15);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment