Exemplo n.º 1
0
    void PositionMainControllerPrompt()
    {
        RectTransform rt = mainPrompt.GetComponent <RectTransform>();

        rt.anchorMax        = rt.anchorMin = new Vector2(0.5f, 0.5f);
        rt.localScale       = mainPromptScaleMultiplier * Vector2.one;
        rt.anchoredPosition = new Vector2(0.0f, 100.0f);
    }