private void InputUpdate() { if (!OneGen.finished) { if (Input.GetKeyDown(KeyCode.D)) { AudioManager.Instance.PlaySE("Normal"); int i = OneGen.index; i += 1; if (i > OneGen.points.Count - 1) { i = 0; } OneGen.index = i; } if (Input.GetKeyDown(KeyCode.A)) { AudioManager.Instance.PlaySE("Normal"); int i = OneGen.index; i -= 1; if (i < 0) { i = OneGen.points.Count - 1; } OneGen.index = i; } } if (!TwoGen.finished) { if (Input.GetKeyDown(KeyCode.RightArrow)) { AudioManager.Instance.PlaySE("Normal"); int i = TwoGen.index; i += 1; if (i > TwoGen.points.Count - 1) { i = 0; } TwoGen.index = i; } if (Input.GetKeyDown(KeyCode.LeftArrow)) { AudioManager.Instance.PlaySE("Normal"); int i = TwoGen.index; i -= 1; if (i < 0) { i = TwoGen.points.Count - 1; } TwoGen.index = i; } } if (Input.GetKeyDown(KeyCode.LeftShift)) { OneGen.Connect(); } if (Input.GetKeyDown(KeyCode.RightShift)) { TwoGen.Connect(); } if (Input.GetKeyDown(KeyCode.LeftControl)) { OneGen.Cancel(); } if (Input.GetKeyDown(KeyCode.RightControl)) { TwoGen.Cancel(); } }