Beispiel #1
0
        private void RunStep()
        {
            ModuleItem         moduleItem = ModulesTutorialUtil.GetModuleItem(base.tutorialData);
            CollectionSlotView view       = CollectionView.slots[moduleItem];
            List <GameObject>  objects    = new List <GameObject> {
                view.gameObject,
                this.modulesScreen.turretCollectionView.gameObject
            };

            ModulesTutorialUtil.SetOffset(objects);
            NewModulesScreenUIComponent.selection.Select(NewModulesScreenUIComponent.slotItems[moduleItem]);
            TutorialCanvas.Instance.AddAdditionalMaskRect(view.gameObject);
            TutorialCanvas.Instance.AddAdditionalMaskRect(this.modulesScreen.turretCollectionView.gameObject);
            this.StepComplete();
        }
Beispiel #2
0
        private void RunStep()
        {
            ModuleItem moduleItem = ModulesTutorialUtil.GetModuleItem(base.tutorialData);

            this.collectionSlot = CollectionView.slots[moduleItem];
            List <GameObject> objects = new List <GameObject> {
                this.collectionSlot.gameObject
            };

            ModulesTutorialUtil.SetOffset(objects);
            TutorialCanvas.Instance.AddAdditionalMaskRect(this.collectionSlot.gameObject);
            NewModulesScreenUIComponent.selection.Select(this.collectionSlot);
            this.collectionSlot.gameObject.AddComponent <CanvasGroup>().blocksRaycasts = false;
            TutorialCanvas.Instance.SkipTutorialButton.GetComponent <Button>().onClick.AddListener(new UnityAction(this.OnSkipTutorial));
            this.modulesScreen.selectedModuleView.ResearchButton.GetComponent <Button>().onClick.AddListener(new UnityAction(this.OnResearchClick));
            this.StepComplete();
        }