Exemplo n.º 1
0
#pragma warning restore 0649

    public void setControlScheme(MicrogameTraits.ControlScheme controlScheme)
    {
        //TODO re-enable command warnings?
        controlRenderer.sprite = StageController.instance.controlSchemeSprites[(int)controlScheme];

        var text = TextHelper.getLocalizedTextNoWarnings("stage.control." + controlScheme.ToString().ToLower(), getDefaultControlString(controlScheme));

        if (controlText != null)
        {
            controlText.text = text;
        }
        if (controlTmpComponent != null)
        {
            controlTmpComponent.text = text;
        }
    }
Exemplo n.º 2
0
#pragma warning restore 0649

    public void setControlScheme(MicrogameTraits.ControlScheme controlScheme)
    {
        //TODO re-enable command warnings?
        controlRenderer.sprite = GameController.instance.getControlSprite(controlScheme);
        controlText.text       = TextHelper.getLocalizedTextNoWarnings("stage.control." + controlScheme.ToString().ToLower(), getDefaultControlString(controlScheme));
    }