public void ShowFx() { if (FxObj && Exist(m_Data)) { UIControllerHotfix.Current.CloseCallbacks.Add(() => { FxObj.GetComponent <ParticleSystemUIComponent>().Stop(); }); if (!m_Data.IsFightOut) { FxObj.GetComponent <ParticleSystemUIComponent>().Play(); EffectClip clip = FxObj.GetComponent <EffectClip>(); if (clip != null && !clip.HasInitialized) { clip.Init(); } } } }
public void Fill(FlowEnemyData data) { m_Data = data; if (m_Data != null) { PlayerIcon.spriteName = m_Data.IconName; FrameIcon.spriteName = m_Data.FrameName; SetFlag(m_Data.Score); FightOutObj.CustomSetActive(m_Data.IsFightOut); FxObj.CustomSetActive(!m_Data.IsFightOut); mDMono.gameObject.CustomSetActive(true); PointLabel.text = string.Format(EB.Localizer.GetString("ID_codefont_in_FlowEnemyHud_2368"), data.Score); } else { mDMono.gameObject.CustomSetActive(false); } }