Skip to content

Commit

Permalink
Remove one event from OnDemand
Browse files Browse the repository at this point in the history
  • Loading branch information
StollD committed Sep 4, 2017
1 parent 8fec129 commit fe1e12f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions Kopernicus/Kopernicus.OnDemand/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public class Events : MonoBehaviour
public static EventData<ScaledSpaceDemand> OnScaledSpaceLoad { get; private set; }
[Description("OnDemand.ScaledSpace.Unload")]
public static EventData<ScaledSpaceDemand> OnScaledSpaceUnload { get; private set; }

[Description("OnDemand.Body.Load")]
public static EventData<CelestialBody> OnBodyLoad { get; private set; }
[Description("OnDemand.Body.Unload")]
public static EventData<CelestialBody> OnBodyUnload { get; private set; }

[Description("OnDemand.MapSO.Load.NR")]
private static EventVoid OnMapSOLoadNR { get; set; }
Expand Down
2 changes: 0 additions & 2 deletions Kopernicus/Kopernicus.OnDemand/OnDemandStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public static Boolean EnableBody(String body)
if (maps.ContainsKey(body))
{
EnableMapList(maps[body]);
Events.OnBodyLoad.Fire(PSystemManager.Instance.localBodies.Find(b => b.transform.name == body));
return true;
}
return false;
Expand All @@ -171,7 +170,6 @@ public static Boolean DisableBody(String body)
if (maps.ContainsKey(body))
{
DisableMapList(maps[body]);
Events.OnBodyUnload.Fire(PSystemManager.Instance.localBodies.Find(b => b.transform.name == body));
return true;
}
return false;
Expand Down

0 comments on commit fe1e12f

Please sign in to comment.