void SpawnUiObj() { var uiObj = new AnimatedUIObj(); uiObj.instance = Instantiate(prefab, parent); uiObj.txt = uiObj.instance.GetComponentInChildren <TMPro.TMP_Text>(); uiObj.canvasGroup = uiObj.instance.GetComponentInChildren <CanvasGroup>(); // uiObj.instance.SetActive(false); uiObj.canvasGroup.alpha = 0; animatedUIObjs.Push(uiObj); }
void RequeueObj(AnimatedUIObj obj) { animatedUIObjs.Push(obj); }