IEnumerator SpawnSkele(float time) { isSpawningSkele = true; yield return(new WaitForSeconds(time)); enemySpawn.SpawnSkeleton(); isSpawningSkele = false; }