protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(thumbnailImage, lockedTexture);

            unlockableManager = Engine.GetService <IUnlockableManager>();
        }
Пример #2
0
        protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(grid, viewerPanel, viewerImage);

            unlockableManager   = Engine.GetService <IUnlockableManager>();
            providerManager     = Engine.GetService <IResourceProviderManager>();
            localizationManager = Engine.GetService <ILocalizationManager>();
            inputManager        = Engine.GetService <IInputManager>();
        }
Пример #3
0
        protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(ThumbnailImage, LockedTexture);

            unlockableManager      = Engine.GetService <IUnlockableManager>();
            localizationManager    = Engine.GetService <ILocalizationManager>();
            ThumbnailImage.texture = LoadingTexture;

            unlockableManager.OnItemUpdated     += HandleItemUpdated;
            localizationManager.OnLocaleChanged += HandleLocaleChanged;
        }
Пример #4
0
        protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(itemsScrollRect, ItemsContainer, ItemPrefab);

            unlockableManager = Engine.GetService <IUnlockableManager>();
            textManager       = Engine.GetService <ITextManager>();

            SetTitle(string.Empty);
            SetNumber(string.Empty);
            SetCategory(string.Empty);
            SetDescription(string.Empty);
        }
Пример #5
0
        protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(itemsContainer, itemPrefab, titleText, numberText, categoryText, descriptionText);

            unlockableManager = Engine.GetService <IUnlockableManager>();
            textManager       = Engine.GetService <ITextManager>();
            stateManager      = Engine.GetService <IStateManager>();

            titleText.text       = string.Empty;
            numberText.text      = string.Empty;
            categoryText.text    = string.Empty;
            descriptionText.text = string.Empty;
        }