Esempio n. 1
0
        private void Update()
        {
            if (!this.mFading)
            {
                return;
            }
            MultiPlayVersusGradientFade instance = MultiPlayVersusGradientFade.Instance;

            if (Object.op_Equality((Object)instance, (Object)null))
            {
                this.mFading = false;
                this.ActivateOutputLinks(10);
                ((Behaviour)this).set_enabled(false);
            }
            else
            {
                if (instance.Fading)
                {
                    return;
                }
                this.mFading = false;
                this.ActivateOutputLinks(10);
                ((Behaviour)this).set_enabled(false);
            }
        }
Esempio n. 2
0
 private void OnDestroy()
 {
     if (!Object.op_Equality((Object)MultiPlayVersusGradientFade.sInstance, (Object)this))
     {
         return;
     }
     MultiPlayVersusGradientFade.sInstance = (MultiPlayVersusGradientFade)null;
 }
Esempio n. 3
0
 private void Awake()
 {
     if (Object.op_Inequality((Object)MultiPlayVersusGradientFade.sInstance, (Object)null))
     {
         Object.Destroy((Object)this);
     }
     MultiPlayVersusGradientFade.sInstance = this;
     this.mAnimator    = (Animator)((Component)this).GetComponent <Animator>();
     this.mCanvasGroup = (CanvasGroup)((Component)this).GetComponent <CanvasGroup>();
 }
Esempio n. 4
0
        public override void OnActivate(int pinID)
        {
            MultiPlayVersusGradientFade instance = MultiPlayVersusGradientFade.Instance;

            if (Object.op_Equality((Object)instance, (Object)null))
            {
                DebugUtility.Log("MultiPlayVersus専用です");
            }
            else
            {
                if (pinID == 1)
                {
                    instance.FadeIn();
                }
                else
                {
                    instance.FadeOut();
                }
                ((Behaviour)this).set_enabled(true);
                this.mFading = true;
            }
        }