void TitleSelectInput() { int axis = (int)Input.GetAxis("LRArrow") + (int)Input.GetAxis("Horizontal"); //左右移動 if (axis != 0) { selectGravity += Time.deltaTime; if (!isArrowed) { Debug.Log("select=" + selectGravity); //-1で左、1で右 titleselect += (int)axis; isArrowed = true; } //一定秒後にめっちゃ早く選ぶ if (selectGravity > 0.5f) { Debug.Log("gravity"); titleselect += (int)axis; } if (titleselect < TS_MIN) { titleselect = TS_MIN; } if (titleselect > TS_MAX) { titleselect = TS_MAX; } } else { isArrowed = false; selectGravity = 0; } //選択 if (Input.GetButtonDown("circle") || Input.GetKeyDown(KeyCode.Space)) { if (mode == MODE.TITLE) { canvas.FadeIn(); StartUp(); //switch (titleselect) //{ // case 0: // canvas.FadeIn(); // StartUp(); // break; // case 1: // canvas.HideImage(); // GalleryStart(); // break; // case 2: // break; // default: // break; //} } } }