// Update is called once per frame void Update() { if (Input.GetInputDown(0, PlInput.Key.KEY_SUBMIT) == 1) { Debug.Log("Player0 Submitted"); } if (Input.GetInputDown1(1, 2) == 1) { Debug.Log("Player1 Submitted"); } }
//ボタンが押された瞬間だったら1or-1を返す public int GetInputDown(int playerNum, PlInput.Key key) { return(input.GetInputDown(playerNum, key)); }