// Update is called once per frame void Update() { if (Input.touches.Length <= 0) //if no touches { // do nothing return; } else //if the screen is being touched { if (UpBtn.BeingPressed()) { //Input } else if (DownBtn.BeingPressed()) { } else if (LBtn.BeingPressed()) { } else if (RBtn.BeingPressed()) { } } }