private void EndLevel() { TileManagerService.GetInstance().IsLocked = true; PlayerSpawner.LockSpawner(); PlayerSpawner.RemoveAllSpawnedUnits(); OpponentSpawner.LockSpawner(); OpponentSpawner.RemoveAllSpawnedUnits(); }
public void CastFreeze() { if (CanCast()) { OpponentSpawner.LockSpawner(); LevelManagerService.GetInstance().CurrentPlayerMana -= 3; StartCoroutine(UnlockSpawnerAfter(10f)); List <GameObject> units = OpponentSpawner.GetAllSpawnedUnits(); foreach (GameObject u in units) { if (u != null) { SpellEffectsService.GetInstance().FreezeEffect(u, 10f); } } } }