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); } }
private void OnDestroy() { if (!Object.op_Equality((Object)MultiPlayVersusGradientFade.sInstance, (Object)this)) { return; } MultiPlayVersusGradientFade.sInstance = (MultiPlayVersusGradientFade)null; }
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>(); }
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; } }