Example #1
0
 protected override void Awake() {
     base.Awake();
     _fleetMgr = gameObject.GetSafeMonoBehaviour<FleetUnitCreator>();
     _fleetCmd = gameObject.GetSafeFirstMonoBehaviourInChildren<FleetCommand>();
     _trackingLabelFactory = TrackingWidgetFactory.Instance;
     Target = _fleetCmd.transform;
     InitializeHighlighting();
     maxAnimateDistance = 1; // FIXME maxAnimateDistance not used, this is a dummy value to avoid the warning in AGraphics
 }
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();
 }