public void SummonOutsider() { this.summonCounter++; if (this.summonCounter >= this.PsiEvent.SummonLocations.Length) { this.summonCounter = 0; } GameObject spawnLocation = this.PsiEvent.SummonLocations[this.summonCounter]; SpriteRenderer circleSprite = spawnLocation.GetComponent <SpriteRenderer>(); circleSprite.color = Color.clear; this.PsiEvent.SummonLocations[this.summonCounter].SetActive(true); Coroutines.EaseSpriteColor( target: circleSprite, color: Color.red, duration: 2f, callback: () => { int randomIndex = Random.Range(0, this.PsiEvent.Enemies.Length); Instantiate( this.PsiEvent.Enemies[randomIndex], circleSprite.transform.position, Quaternion.identity); spawnLocation.SetActive(false); }); }