Beispiel #1
0
 protected override void Awake() {
     base.Awake();
     enabled = false;    // disabled behaviours aren't updated
     _fleetCmd = gameObject.GetSafeFirstMonoBehaviourInChildren<FleetCommand>();
     _fleetCmdTransform = _fleetCmd.transform;
     _fleetGraphics = gameObject.GetSafeMonoBehaviour<FleetGraphics>();
     ShipCaptains = gameObject.GetSafeMonoBehavioursInChildren<ShipCaptain>().ToList();
     _gameMgr = GameManager.Instance;
     _eventMgr = GameEventManager.Instance;
     _selectionMgr = SelectionManager.Instance;
     InitializeFleetIcon();
     Subscribe();
 }
Beispiel #2
0
 protected override void Awake() {
     base.Awake();
     _fleetMgr = gameObject.GetSafeFirstMonoBehaviourInParents<FleetUnitCreator>();
     _fleetGraphics = gameObject.GetSafeFirstMonoBehaviourInParents<FleetGraphics>();
 }