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