コード例 #1
0
ファイル: GameManager.cs プロジェクト: pontura/penalty
    IEnumerator DoTransition()
    {
        yield return(new WaitForSeconds(0.70f));

        Shoot();
        yield return(new WaitForSeconds(0.05f));

        Events.OnKick();
        RealShoot();
        yield return(new WaitForSeconds(1.5f));

        yield return(StartCoroutine(vrCameraFade.BeginFadeOut(0.5f, false)));

        SetFloors(false);
        Events.OnShowResult(resultsManager.GetResult(), true);
        yield return(new WaitForSeconds(3));

        if (!GetComponent <ResultsManager>().isReady())
        {
            Events.OnRestart();
        }
        else
        {
            Events.OnShowTotalResult();
        }
    }