protected void ResumePanelUpdate(bool autoDisable = false, UIPanel.PauseType type = UIPanel.PauseType.Others, bool pauseValue = false, float wait = 1f) { Current = this; FetchPanelWhileNull(); //if (CurrentPanel) EB.Debug.Log("<color=yellow>ResumePanelUpdate (auto_pause, name)=> " + autoDisable + ","+ CurrentPanel.name + "</color>"); if (CurrentPanel) CurrentPanel.IsPause = false; if (autoDisable) PausePanelUpdate(type, pauseValue, wait); }
protected void PausePanelUpdate(UIPanel.PauseType type = UIPanel.PauseType.All, bool selfValue = true, float wait = 2f, System.Action callback = null) { FetchPanelWhileNull(); if (CurrentPanel != null) { //EB.Debug.Log("<color=yellow>PausePanelUpdate (name, type)=> " + CurrentPanel.name + ", " + type + "</color>"); //ILRTimerManager.instance.AddTimer(Mathf.RoundToInt(1000 * wait), 1, delegate(int sequence) //{ if (CurrentPanel != null) CurrentPanel.SetPause(type, selfValue); callback?.Invoke(); //}); } }
protected void PausePanelUpdate(UIPanel.PauseType type = UIPanel.PauseType.All, bool selfValue = true, float wait = 2f, System.Action callback = null) { FetchPanelWhileNull(); if (CurrentPanel != null) { EB.Debug.Log("<color=yellow>PausePanelUpdate(Dynamic) (name, type)=> " + CurrentPanel.name + ", " + type + "</color>"); if (CurrentPanel != null) { CurrentPanel.SetPause(type, selfValue); } callback?.Invoke(); } }
protected void ResumePanelUpdate(bool autoPause = false, UIPanel.PauseType type = UIPanel.PauseType.Others, bool pauseValue = false, float wait = 1f) { FetchPanelWhileNull(); if (CurrentPanel) { EB.Debug.Log("<color=yellow>ResumePanelUpdate(Dynamic) (auto_pause, name)=> " + autoPause + "," + CurrentPanel.name + "</color>"); } if (CurrentPanel) { CurrentPanel.IsPause = false; } if (autoPause) { PausePanelUpdate(type, pauseValue, wait); } }