public void OnClickCloseBtn() { //TimerManager.KillTimer(this, 1); cmd_legendcup_quit_observe observeData = new cmd_legendcup_quit_observe(); observeData.nLegendCupID = m_LegendCupID; ViewEventHelper.Instance.SendCommand <cmd_legendcup_quit_observe>(GameLogicDef.GVIEWCMD_LEGENDCUP_QUITOBSERVE, ref observeData); if (param1 != null) { UEffectManager.Instance.DestroyEffect(UEffectType.UET_EffectPrefab, ref param1); param1 = null; } if (param2 != null) { UEffectManager.Instance.DestroyEffect(UEffectType.UET_EffectPrefab, ref param2); param2 = null; } CatchBtnEffect.color = Color.clear; if (CatchBtnEffectSequence != null) { CatchBtnEffectSequence.Kill(true); } m_wnd.UnloadView(); }
public void OnClickCloseBtn() { //TimerManager.KillTimer(this, 1); cmd_legendcup_quit_observe observeData = new cmd_legendcup_quit_observe(); observeData.nLegendCupID = m_LegendCupID; ViewEventHelper.Instance.SendCommand <cmd_legendcup_quit_observe>(GameLogicDef.GVIEWCMD_LEGENDCUP_QUITOBSERVE, ref observeData); m_wnd.UnloadView(); }