//remove permanently or until specified time public override void DestroyObj(GameObject obj) { //Default behavior ToLoad.Remove(obj.GetComponent <SpawnObject>().GetMyOrigin()); removeObj(obj); }
public void FinishedLoading(Player player) { var start = false; lock (ToLoad) { ToLoad.Remove(player); if (ToLoad.Count == 0) { start = true; } } if (start) { StartGameLoop(); } }