private IEnumerator Shoot() { isLayerBlink = false; PauseController.ChangeTime(timeScaleBeforeBlink); yield return(new WaitForSecondsRealtime(toBlinkTime)); Teleport(); if (isLayerBlink) { for (int i = 0; i < secondsInLayerBlinkSloumo; i++) { PauseController.ChangeTime(timeScaleUntilLayerBlink); yield return(new WaitForSecondsRealtime(1f)); } } //yield return new WaitForSecondsRealtime(1f); PauseController.ChangeTime(1f); yield return(new WaitForSeconds(afterBlink)); isAttack = false; }