private void Immaculate() { Unit spawned = SpawnManager.Instance?.SpawnUnitAtRandom(UnitType.TESTAMENT); if (spawned == null) { return; } spawned?.gameObject.SetActive(false); this.immaculatedUnits.Add(spawned); pentagram = AIPlacementHelper.AddEffect(pentagramPrefab, this.gameObject.transform, spawned.GetPosition(), 1); Invoke("EnableUnit", 1.25f); }
private void SpawnIdleParticles() { this.particles?.ForEach(particle => AIPlacementHelper.RemoveEffect(particle)); this.particles = new List <GameObject>(); this.ValidPositions.ForEach(position => this.particles.Add(AIPlacementHelper.AddEffect(this.particlesIdlePrefab, this.gameObject.transform, position, this.particlesIdleHeight))); }