IEnumerator Scriptado() { yield return(new WaitForSeconds(0.75f)); _cmController.ChangeToCamera("CM_vcamWall"); yield return(new WaitForSeconds(7)); _cmController.ChangeToCamera("CM_Main"); yield return(new WaitUntil(() => { return true; })); }
IEnumerator Scriptado() { yield return(new WaitForSeconds(0.75f)); _cmController.ChangeToCamera("CM_ShowLevel"); float progress = 0; while (_trackedDolly.m_PathPosition < 1) { progress += _cartSpeed * Time.fixedDeltaTime; _trackedDolly.m_PathPosition = progress; yield return(new WaitForFixedUpdate()); } yield return(new WaitForSeconds(1.2f)); _cmController.ChangeToCamera("CM_Main"); }