TrackingData() { if (Instance != null && Instance.GetInstanceID() != this.GetInstanceID()) { Destroy(Instance); } Instance = this; }
void OnDestroy() { GameEvents.onPlanetariumTargetChanged.Remove(TargetChange); GameEvents.onGameSceneLoadRequested.Remove(CloseWindow); Instance = null; }