//============================================================================ /// <summary> /// 右にアクションをおこしたかどうか /// </summary> private bool IsRight() { if (Input.GetKey(KeyCode.RightArrow)) { return(true); } if (InputUtil.GetTouchCanvasPosition(_canvas).x > 0 && (InputUtil.GetTouch() == InputUtil.TouchInfo.Began || InputUtil.GetTouch() == InputUtil.TouchInfo.Moved)) { return(true); } return(false); }
//============================================================================ /// <summary> /// 右にアクションをおこしたかどうか /// </summary> private bool IsRight() { if (Option.Option_swich == true) { return(false); //オプションボタンを押されたときに右に移動させない } if (Input.GetKey(KeyCode.RightArrow)) { return(true); } if (InputUtil.GetTouchCanvasPosition(_canvas).x > 0 && (InputUtil.GetTouch() == InputUtil.TouchInfo.Began || InputUtil.GetTouch() == InputUtil.TouchInfo.Moved)) { return(true); } return(false); }