public void RemoveObject(GameObject visibleObject) { if (visibleObjects.ContainsKey(visibleObject)) { visibleObjects[visibleObject]--; if (visibleObjects[visibleObject] <= 0) { fogCamera.RemoveObject(visibleObject.transform); visibleObjects.Remove(visibleObject); } } }
private void RemoveSystemFromVisible(SolarSystem system) { fogCamera.RemoveObject(system.transform); }