예제 #1
0
    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);
    }
예제 #2
0
 void RequeueObj(AnimatedUIObj obj)
 {
     animatedUIObjs.Push(obj);
 }