Commit 97c74495 by Philipp Adolf

Make it possible to join with arrows2 input mapping

parent dbd5de72
......@@ -119,6 +119,26 @@ public class Menu : MonoBehaviour
}
}
if (Input.GetKeyDown(KeyCode.Hash))
{
if (ArrowAdded)
{
if (startGameIfPossible())
{
return;
}
}
else
{
int playerNumber = addPlayer();
if (playerNumber > 0)
{
ArrowAdded = true;
inputMappings[playerNumber - 1].set(controlType.ARROWS2);
}
}
}
if (GamePad.GetButtonDown(GamePad.Button.A, GamePad.Index.One))
{
if (GP1Added)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment