Esempio n. 1
0
    /// <summary>
    /// Callback for being called when clicked OK button on input configuration
    /// phase. Sets new Input configuration to current player's wrapper.
    /// </summary>
    public void OnClickInputOKButton()
    {
        // Create input
        Player.Input input = new Player.Input();

        // Set input keys
        input.SetKey(Player.Input.Key.Left, m_inputKeyButtons[0].text);
        input.SetKey(Player.Input.Key.Right, m_inputKeyButtons[1].text);
        input.SetKey(Player.Input.Key.Action, m_inputKeyButtons[2].text);

        // Add input to current player
        GetCurrentPlayerObject().SetInput(input);

        InputPhase.SetActive(false);
        Finish();
    }