public void resetTimer() { if (scrollbar.enabled) { timer.StartTimer(true); } else { timer.StopAllCoroutines(); } timer.scrollBar.size = 0; }
private IEnumerator UnClipPlane(bool isClosing) { float i = 0; while (isClosing) { yield return(new WaitForSeconds(Data.clipSpeed)); if (cam.nearClipPlane >= 10f) { break; } cam.nearClipPlane += i; i += 0.01f; } cam.nearClipPlane = Data.maxClipPlane; video.SetActive(false); timer.scrollBar.size = 0; timer.StartTimer(true); }