Beispiel #1
0
        public void Awake()
        {
            Instance = this;

            // Set up persistent stuff
            if (uiAtlas == null)
            {
                uiAtlas = GameDatabase.Instance.GetTexture("ContractConfigurator/ui/TrackingStation", false);
                activeWaypointEnabledSprite   = UnityEngine.Sprite.Create(uiAtlas, new Rect(0, 88, 40, 40), new Vector2(0, 0));
                activeWaypointDisabledSprite  = UnityEngine.Sprite.Create(uiAtlas, new Rect(0, 48, 40, 40), new Vector2(0, 0));
                offeredWaypointEnabledSprite  = UnityEngine.Sprite.Create(uiAtlas, new Rect(40, 88, 40, 40), new Vector2(0, 0));
                offeredWaypointDisabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(40, 48, 40, 40), new Vector2(0, 0));
                activeOrbitEnabledSprite      = UnityEngine.Sprite.Create(uiAtlas, new Rect(80, 88, 40, 40), new Vector2(0, 0));
                activeOrbitDisabledSprite     = UnityEngine.Sprite.Create(uiAtlas, new Rect(80, 48, 40, 40), new Vector2(0, 0));
                offeredOrbitEnabledSprite     = UnityEngine.Sprite.Create(uiAtlas, new Rect(0, 8, 40, 40), new Vector2(0, 0));
                offeredOrbitDisabledSprite    = UnityEngine.Sprite.Create(uiAtlas, new Rect(40, 8, 40, 40), new Vector2(0, 0));
            }
        }
        public void Awake()
        {
            Instance = this;

            // Set up persistent stuff
            if (uiAtlas == null)
            {
                uiAtlas = GameDatabase.Instance.GetTexture("ContractConfigurator/ui/TrackingStation", false);
                activeWaypointEnabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(0, 88, 40, 40), new Vector2(0, 0));
                activeWaypointDisabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(0, 48, 40, 40), new Vector2(0, 0));
                offeredWaypointEnabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(40, 88, 40, 40), new Vector2(0, 0));
                offeredWaypointDisabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(40, 48, 40, 40), new Vector2(0, 0));
                activeOrbitEnabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(80, 88, 40, 40), new Vector2(0, 0));
                activeOrbitDisabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(80, 48, 40, 40), new Vector2(0, 0));
                offeredOrbitEnabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(0, 8, 40, 40), new Vector2(0, 0));
                offeredOrbitDisabledSprite = UnityEngine.Sprite.Create(uiAtlas, new Rect(40, 8, 40, 40), new Vector2(0, 0));
            }
        }