// process input public bool ProcessInput() { // if up if (JInputManager.ButtonUp(0)) { Vector2 wp = Camera.main.ScreenToWorldPoint(JInputManager.GetScreenPosition(0)); Ray2D ray = new Ray2D(wp, Vector2.zero); RaycastHit2D hit = Physics2D.Raycast(ray.origin, ray.direction); if (hit.collider != null) { SetSelectedObject(hit.collider.gameObject); } return(true); } return(false); }
// get delta touch move. protected Vector2 GetDraggingDelta(int index) { return(JInputManager.GetButtonDelta(index)); }
protected bool IsScaleInput() { return(JInputManager.IsResizing()); }
protected bool IsMoveInput() { return(JInputManager.IsButtonDragging(0)); }
// get delta touch scaled protected float GetScaleDelta( ) { return(JInputManager.GetResizingDelta()); }