Exemplo n.º 1
0
    private void SetupTitle()
    {
        string presstext    = "";
        int    gamepadCount = PD.GetGamepadsPresent();

        if (gamepadCount > 0)
        {
            expectingGamepad = true;
            if (gamepadCount > 1)
            {
                expectingP2Gamepad = true;
            }
            presstext = GetXmlValue(top, "starttextgamepad");
        }
        else
        {
            presstext = string.Format(GetXmlValue(top, "starttext"), PD.GetP1InputName(InputMethod.KeyBinding.launch), PD.GetP1InputName(InputMethod.KeyBinding.pause));
        }
        float texty = -0.05f;

        pressButtonToStart       = GetMeshText(new Vector3(0.0f, texty), presstext, PD.mostCommonFont);
        pressButtonToStart.color = Color.white;
        timeUntilDemo            = 600;
    }