public void ShowPetBackground(bool isShow) { if (this.m_spBackgroundImage != null) { this.m_spBackgroundImage.set_enabled(isShow); RTSyncBackground component = this.m_spBackgroundImage.GetComponent <RTSyncBackground>(); if (component != null) { component.Create(); } } }
protected override void OnDisable() { base.OnDisable(); EventDispatcher.Broadcast <bool, RTManager.RtType>("RTManager.ENABLE_PROJECTION_TYPE", false, RTManager.RtType.ActorModel1); RenderSettings.set_fog(true); ModelDisplayManager.IsAlwaysCombo = false; ModelDisplayManager.Instance.ShowPetScene(false); CurrenciesUIViewModel.Show(false); EventDispatcher.Broadcast("UIManagerControl.HideTipsUI"); this.JustPlayActivation(false, false); this.RefreshFXOfUpgradeMax(false); if (this.m_spBackgroundImage != null) { RTSyncBackground component = this.m_spBackgroundImage.GetComponent <RTSyncBackground>(); if (component != null) { component.Release(); } } }