public IEnumerator SummonEnemy(EnemyAI enemy) { enemy.gameObject.SetActive(false); enemy.SetCoordinates(x, y); enemy.MovePosition(x, y); yield return new WaitForSeconds(1.0f); gameObject.SetActive(true); yield return new WaitForSeconds(1.0f); enemy.gameObject.SetActive(true); gameObject.SetActive(false); }