public static void AttachWaitEnd(WaitSwitchingEnd waitEnd) { if (s_SwitchingControl != null) { if (s_SwitchingControl.m_IsSwitch) { s_SwitchingControl.m_WaitSwitchEnd = waitEnd; } else { waitEnd(); } } }
IEnumerator HideOne() { yield return(new WaitForSeconds(m_nHideSpeedUpTime + m_nHideWaittingDelayTime)); HideProgressBar(); if (m_nInUsing > 0) { --m_nInUsing; } if (m_nInUsing <= 0 && gameObject.activeSelf) { m_CameraObject.SetActive(false); } m_IsSwitch = false; if (m_WaitSwitchEnd != null) { m_WaitSwitchEnd(); m_WaitSwitchEnd = null; } }