// 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); } }
public void OpenOptions() { MMUi.SetActive(false); Instantiate(OptionUI, MMUi.transform.parent, false); }