Example #1
0
 protected override void Awake() {
     base.Awake();
     _orbitalPlane = gameObject.GetSafeFirstMonoBehaviourInChildren<OrbitalPlaneInputEventRouter>();
     _systemGraphics = gameObject.GetSafeMonoBehaviour<SystemGraphics>();
     _star = gameObject.GetSafeFirstMonoBehaviourInChildren<Star>();
     _planetsAndMoons = gameObject.GetSafeMonoBehavioursInChildren<FollowableItem>();
     _eventMgr = GameEventManager.Instance;
     _selectionMgr = SelectionManager.Instance;
 }
Example #2
0
 protected override void Awake() {
     base.Awake();
     Target = _transform;
     _orbitalPlane = gameObject.GetSafeFirstMonoBehaviourInChildren<OrbitalPlaneInputEventRouter>();
     _systemManager = gameObject.GetSafeMonoBehaviour<SystemCreator>();
     _trackingLabelFactory = TrackingWidgetFactory.Instance;
     maxAnimateDistance = GraphicsSettings.Instance.MaxSystemAnimateDistance;
     _systemHighlightRenderer = __FindSystemHighlight();
 }