- Home /
Getkeyup in windows change touch in Android?
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); } } }
in Windows if (Input.GetKeyUp("space")) { rigidbody2D.velocity = Vector2.zero; rigidbody2D.AddForce(jumpForce); }
But in Android How c#Scripts touchscreen in android
Please Help mee
Your answer
Follow this Question
Related Questions
Android: TouchScreenKeyboard not functioning 2 Answers
Mobile keyboard questions 0 Answers
Editable text field in Android with cursor 0 Answers
Android Keyboard Issues 0 Answers
My text in my TextMesh changes all TextMesh objects 1 Answer