Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        uiItems.AddRange(MMUi.GetComponentsInChildren <Image>());

        texts.AddRange(MMUi.GetComponentsInChildren <TextMeshProUGUI>());

        foreach (TextMeshProUGUI t in texts)
        {
            t.alpha = 0f;
        }

        foreach (Image i in uiItems)
        {
            i.color = new Color(i.color.r, i.color.g, i.color.b, 0f);
        }
    }
Пример #2
0
    public void OpenOptions()
    {
        MMUi.SetActive(false);

        Instantiate(OptionUI, MMUi.transform.parent, false);
    }