private static InputPlayerActions GetDefaultBindingSettings()
    {
        var actions = new InputPlayerActions();

        actions.ListenOptions.IncludeUnknownControllers = true;

        actions.ListenOptions.MaxAllowedBindings = 1;

        return(actions);
    }
Exemplo n.º 2
0
    void Start()
    {
        inputPlayers = new InputPlayer[MAX_PLAYERS];

        for (int i = 0; i < inputPlayers.Length; i++)
        {
            var inputPlayer = new InputPlayer();

            inputPlayer.PlayerActionSet = (i == 0)
                ? InputPlayerActions.CreateWithKeyboardBindings()
                : InputPlayerActions.CreateWithEmptyBindings();

            inputPlayers[i] = inputPlayer;
        }

        LoadBindings();
        WireTankEvents();
    }