Exemple #1
0
        protected internal override void OnResume()
#endif
        {
            base.OnResume();
            GComponent.visible = true;
            GComponent.alpha   = 0f;
            StopAllCoroutines();

            if ((gameObject as GameObject) != null && gameObject.activeInHierarchy)
            {
                StartCoroutine(GComponent.FadeToAlpha(1f, FadeTime));
            }
        }
Exemple #2
0
        protected internal override void OnOpen(object userData)
#endif
        {
            base.OnOpen(userData);
            ForceRefresh(userData);
            GComponent.visible = true;
            GComponent.alpha   = 0f;
            StopAllCoroutines();

            if ((gameObject as GameObject) != null && gameObject.activeSelf)
            {
                StartCoroutine(GComponent.FadeToAlpha(1f, FadeTime));
            }
        }