Esempio n. 1
0
    public IEnumerator ControlWizard(int playerNumber, OptionsMenuButton button)
    {
        VirtualControlManager.SetupDefaultControls(playerNumber);

        yield return(new WaitForEndOfFrame());

        yield return(new WaitForEndOfFrame());

        yield return(new WaitForEndOfFrame());

        foreach (string inputName in VirtualControlManager.inputNames)
        {
            cInput.ChangeKey(inputName + playerNumber);
            button.text.text = string.Format("Press key/button for {0}", inputName);

            yield return(new WaitForEndOfFrame());

            yield return(new WaitForEndOfFrame());

            yield return(new WaitForEndOfFrame());

            yield return(new WaitUntil(() => !cInput.scanning));
        }

        button.text.text = "Set controls for player " + (playerNumber + 1);
    }
Esempio n. 2
0
 void Start()
 {
     VirtualControlManager.SetupDefaultControls(playerNumber);
     vfx.SetVFXColors(playerColor);
 }