public void RemoveTimeControlObject(TimeControlObject obj) { if (obj.showTime == TimeControl.NIGHT) { nightObjects.Remove(obj); } else { dayObjects.Remove(obj); } }
public void AddTimeControlObject(TimeControlObject obj) { if (obj.showTime == TimeControl.NIGHT) { nightObjects.Add(obj); } else { dayObjects.Add(obj); } }