I am developing an 2D game for android. I need to know if using the pace bar to make to player jump will work on the device as if to tap the screen. here is the code using UnityEngine; public class Player : MonoBehaviour { // The force which is added when the player jumps // This can be changed in the Inspector window public Vector2 jumpForce = new Vector2(0, 300); // Update is called once per frame void Update () { // Jump if (Input.GetKeyUp("space")) { rigidbody2D.velocity = Vector2.zero; rigidbody2D.AddForce(jumpForce); } } } Thanks any help is welcome
Im having problems with testing on my android device...it keeps closing on me without showing anything not sure why it just shows an blank screen