Ejemplo n.º 1
0
    public void BackToMenu()
    {
        // needed to reset variables from AssignPlayerController
        assignment = assignmentPanel.GetComponent <AssignPlayerController>();
        assignment.ResetAssignment();

        modalityPanel.SetActive(false);
        playerModePanel.SetActive(true);
        GMController.instance.CurrentEventSystem.SetSelectedGameObject(playerModePanel.transform.GetChild(0).gameObject, new BaseEventData(GMController.instance.CurrentEventSystem));
    }
Ejemplo n.º 2
0
    public void SetNumber()
    {
        GMController.instance.PlayersRequired    = playerNumber;
        GMController.instance.PlayersInputConfig = new ConfigInUse[playerNumber];

        assignment = assignmentPanel.GetComponent <AssignPlayerController>();
        GMController.instance.controllerCheckNeeded = false;
        assignmentPanel.SetActive(true);
        assignment.ActivateButtons(playerNumber);

        GMController.instance.CurrentEventSystem.SetSelectedGameObject(assignment.playerButtons[0], new BaseEventData(GMController.instance.CurrentEventSystem));
        playerModePanel.SetActive(false);
    }