private IEnumerator CoroutineGameOver(Vector2 start) { while (true) { gameoverProcess += Time.deltaTime * 0.5f; gameover.transform.position = Vector2.Lerp(start, Vector2.zero, gameoverProcess); if (gameoverProcess >= 2.0f) { ResetGame(); gameover.transform.position = start; gameover.SetActive(false); gameoverProcess = 0; UnityEngine.SceneManagement.SceneManager.LoadScene( UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex); adManager.ActiveAD(); yield break; } yield return(null); } }