Example #1
0
        protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(grid, viewerPanel, viewerImage);

            unlockableManager   = Engine.GetService <UnlockableManager>();
            providerManager     = Engine.GetService <ResourceProviderManager>();
            localizationManager = Engine.GetService <LocalizationManager>();
            inputManager        = Engine.GetService <InputManager>();
        }
Example #2
0
        protected override void Awake()
        {
            base.Awake();
            this.AssertRequiredObjects(itemsContainer, itemPrefab, titleText, numberText, categoryText, descriptionText);

            unlockableManager = Engine.GetService <UnlockableManager>();
            textManager       = Engine.GetService <TextManager>();
            stateManager      = Engine.GetService <StateManager>();
            inputManager      = Engine.GetService <InputManager>();

            titleText.text       = string.Empty;
            numberText.text      = string.Empty;
            categoryText.text    = string.Empty;
            descriptionText.text = string.Empty;
        }
 void Awake()
 {
     instance = this;
 }
 void Start()
 {
     UM    = transform.parent.GetComponent <UnlockableManager>();
     image = GetComponent <Image>();
     GetComponent <Button>().onClick.AddListener(Clicked);
 }