private IEnumerator RotateMedal() { while (m_IsSpin) { yield return(YieldHelper.waitForEndOfFrame()); transform.Rotate(-Vector3.forward * Time.deltaTime * 3000); } }
private IEnumerator CoroutineCheckInvokeAutoFocus() { while (m_finishedDecode == false) { yield return(YieldHelper.waitForSeconds(focusInterval)); if (m_finishedDecode == false) { qrCamera.ResetAutoFocus(); } } }
private IEnumerator DelayPlay(Transform target) { // 8f/30f = 267 yield return(YieldHelper.waitForSeconds(267)); if (followTargetBone == false) { transform.localPosition = target.localPosition; } gameObject.SetActive(false); gameObject.SetActive(true); }
private IEnumerator ProcessSecondHalfAction() { yield return(YieldHelper.waitForSeconds(1000)); m_playerDinosaur.CounterDefence(); m_enemyDinosaur.CounterDefence(); m_playerDinosaur.ProcessSecondAction(m_enemyDinosaur); m_enemyDinosaur.ProcessSecondAction(m_playerDinosaur); SetPlayerHPGauge(); SetEnemyHPGauge(); StartCoroutine(ProcessTurnBattleResult()); }
private IEnumerator CheckIfAlive() { if (m_particleSystem == null) { m_particleSystem = GetComponent <ParticleSystem>(); } while (m_particleSystem.IsAlive(true)) { yield return(YieldHelper.waitForSeconds(500)); } gameObject.SetActive(false); OnDead(); }
private IEnumerator ProcessFirstHalfAction() { yield return(YieldHelper.waitForSeconds(1000)); m_playerDinosaur.ProcessFirstAction(m_enemyDinosaur); m_enemyDinosaur.ProcessFirstAction(m_playerDinosaur); SetPlayerHPGauge(); SetEnemyHPGauge(); if (m_playerDinosaur.enableCounter || m_enemyDinosaur.enableCounter) { StartCoroutine(ProcessSecondHalfAction()); } else { StartCoroutine(ProcessTurnBattleResult()); } }
private IEnumerator ProcessTurnBattleResult() { yield return(YieldHelper.waitForSeconds(800)); CheckTurnBattle(); }