public override bool WasButtonReleasedInCurrentFrame(int buttonIndex) { int touchCount = TouchCount; if (buttonIndex >= touchCount || touchCount > MaxNumberOfTouches) { return(false); } return(RTInput.TouchEndedOrCanceled(buttonIndex)); }