コード例 #1
0
        private void CheckFadeIn(bool fadeIn, GameObject go)
        {
            if (!fadeIn)
            {
                return;
            }
            IXTweenFadeIn iXTweenFadeIn = go.GetComponent("TweenFadeIn") as IXTweenFadeIn;

            if (iXTweenFadeIn == null)
            {
                XSingleton <XDebug> .singleton.AddErrorLog("Tpl haven't FadeIn Component but Fetch try to get it.", null, null, null, null, null);

                return;
            }
            iXTweenFadeIn.PlayFadeIn();
        }
コード例 #2
0
        public void PlayFadeInWithActiveList()
        {
            List <GameObject> list = ListPool <GameObject> .Get();

            this.GetActiveList(list);
            if (list.Count != 0)
            {
                IXTweenFadeIn iXTweenFadeIn = list[0].GetComponent("TweenFadeIn") as IXTweenFadeIn;
                if (iXTweenFadeIn == null)
                {
                    XSingleton <XDebug> .singleton.AddErrorLog("Tpl ActiveList haven't FadeIn Component but Fetch try to get it.", null, null, null, null, null);
                }
                else
                {
                    iXTweenFadeIn.ResetGroupDelay();
                    for (int i = 0; i < list.Count; i++)
                    {
                        this.CheckFadeIn(true, list[i]);
                    }
                }
            }
            ListPool <GameObject> .Release(list);
        }