public void Update() { if (_msgScroll.verticalNormalizedPosition > 1f && !_isReloadingDialogueMute) { _LoadMoreDialogue(); _isReloadingDialogueMute = true; CoroutineManager.DoDelayCertainSeconds(delegate { _isReloadingDialogueMute = false; }, 3f); } }
public DownCounter Start() { isToggled = true; _coroutine = CoroutineManager.DoDelayCertainSeconds(delegate { isToggled = false; Services.eventManager.Fire(new DownCounterStop(this)); }, countTime); Services.eventManager.Fire(new DownCounterStart(this)); return(this); }
public void DialIn(PlotManager.PhoneCall phone) { targetPhoneCall = phone; _previousPage = _ps.GetCurrentState(); _ps.ChangeGameState("Phone_DemonCall"); var waitTime = 15f; _phoneRelatedCoroutine.Add(CoroutineManager.DoDelayCertainSeconds( Hang, waitTime)); }
private void ZoomOut() { if (!_isLocked && !Services.inputController.isPointerOnGameObject(gameObject)) { _mp.gameObject.transform.localScale = oriVideoScale; _mp.gameObject.transform.localPosition = oriVideoCenter; triggeredTime++; CoroutineManager.DoDelayCertainSeconds(delegate { _isLocked = false; }, lockedTime); } }
private void ZoomIn() { if (!_isLocked) { _isLocked = true; Vector3 magniCenter = new Vector3((knotPos.x - oriVideoCenter.x) * magniTime, (knotPos.y - oriVideoCenter.y) * magniTime, oriVideoCenter.z); _mp.gameObject.transform.localScale = oriVideoScale * magniTime; _mp.gameObject.transform.localPosition = new Vector3(oriVideoCenter.x - magniCenter.x, oriVideoCenter.y - magniCenter.y, oriVideoCenter.z); startedCoroutine = CoroutineManager.DoDelayCertainSeconds(delegate { _isLocked = false; ZoomOut(); }, lockedTime); } }
private IEnumerator _TrackCoroutine() { while (Services.applicationController.isGamePaused) { yield return(new WaitForSeconds(0.1f)); } switch (appearType) { case knotAppearType.natual: SetActive(); break; case knotAppearType.basedOnTime: _activeRoutine.Add( CoroutineManager.DoDelayCertainSeconds(delegate() { SetActive(); }, knotActPosition)); break; } }
public void DialOut(PlotManager.PhoneCall phone = null) { targetPhoneCall = phone; _previousPage = _ps.GetCurrentState(); _ps.ChangeGameState("Phone_OnCall"); var waitTime = 0f; if (phone == null) { waitTime = 15f; } else { waitTime = Random.Range(0f, 13f); } _phoneRelatedCoroutine.Add(CoroutineManager.DoDelayCertainSeconds( PhonePutThrough, waitTime)); }