IEnumerator ShakTheCameraAndSpawnTheBoss() { shakeCamera.InitializeValues(shakeTime); enemySpawner.SpawnBoss(0); yield return(new WaitForSecondsRealtime(shakeTime + delayBefore_BossFightStarts)); Time.timeScale = 1f; bossSpawnCamera.SetActive(false); }
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; }