コード例 #1
0
    IEnumerator ShakTheCameraAndSpawnTheBoss()
    {
        shakeCamera.InitializeValues(shakeTime);

        enemySpawner.SpawnBoss(0);

        yield return(new WaitForSecondsRealtime(shakeTime + delayBefore_BossFightStarts));

        Time.timeScale = 1f;

        bossSpawnCamera.SetActive(false);
    }
コード例 #2
0
    IEnumerator ShakeCamera()
    {
        cameraFollow.enabled = false;
        shakeCamera.enabled  = true;
        shakeCamera.InitializeValues(shakeDuration);

        yield return(new WaitForSeconds(1f));

        cameraFollow.enabled          = true;
        shakeCamera.enabled           = false;
        characterAttack.ComboFinished = false;
    }