示例#1
0
    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;
        }));
    }
示例#2
0
    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");
    }