| | |
| | |
|
| | | public class CoroutineMgr : SingletonMonobehaviour<CoroutineMgr>
|
| | | {
|
| | | public event Action MaininterCDTimeEvent;//主界面CD时间
|
| | | public event Action MainHighTipCdTimeEvent;//主界面上层切换CD时间
|
| | |
|
| | | public void OnMainStartCorUp(float _waitingTime)//顶层面板切换协程开启
|
| | |
| | | _ControlBoolA = false;
|
| | | StopCoroutine("TheUpperPanel");
|
| | | }
|
| | |
|
| | | IEnumerator SwitchPanel(float _waitingTime)//用于主界面的面板切换
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding)
|
| | | {
|
| | | yield break;
|
| | | }
|
| | |
|
| | | yield return new WaitForSeconds(_waitingTime);
|
| | |
|
| | | if (MaininterCDTimeEvent != null)
|
| | | {
|
| | | MaininterCDTimeEvent();
|
| | | }
|
| | |
|
| | | WindowCenter.Instance.Get<MainInterfaceWin>().MarkRayButton();
|
| | | }
|
| | |
|
| | | bool _ControlBoolA = false;
|
| | | IEnumerator TheUpperPanel(float _waitingTime)//用于主界面的顶层切换
|
| | | {
|