Beispiel #1
0
        public Tracking_Vessel(TrackingStationWidget widget)
        {
            _vesselWidget = widget;

            _iconSprite = GameObject.Instantiate(Tracking_Loader.IconPrefab);

            _iconSprite.SetType(widget.vessel.vesselType);
        }
Beispiel #2
0
        private static GameObject GetHeaderObject(VesselType type)
        {
            VesselIconSprite _iconSPrite = GameObject.Instantiate(Tracking_Loader.IconPrefab);

            _iconSPrite.SetType(type);

            return(_iconSPrite.gameObject);
        }
Beispiel #3
0
        public void OnIconUpdate()
        {
            if (_iconSprite == null || _vesselWidget == null)
            {
                return;
            }

            if (_iconSprite.vesselType != _vesselWidget.vessel.vesselType)
            {
                _iconSprite.SetType(_vesselWidget.vessel.vesselType);
            }
        }