public void StopAllThings() { //sManager_Ref.PlaySubtitle(53); spawningStatus = SpawningStatus.Idle; //sManager_Ref.TurnOffSubtitleImmediately(); int count = spawnedProjectiles.Count; for (int x = 0; x < count; x++) { GameObject gO = spawnedProjectiles[x].gameObject; Destroy(gO.gameObject, 0.1f); spawnedProjectiles.Remove(gO.GetComponent <ArchingProjectile>()); } }
public void PreventSpawning() { spawningStatus = SpawningStatus.Idle; }