예제 #1
0
 public void OnSkipTutorial()
 {
     TutorialCanvas.Instance.dialog.PopupContinue = null;
     ModulesTutorialUtil.ResetOffset();
     ModulesTutorialUtil.UnlockInteractable(this.modulesScreen);
     this.modulesScreen.Hide();
 }
 private void OnComplete()
 {
     TutorialCanvas.Instance.dialog.PopupContinue = null;
     ModulesTutorialUtil.ResetOffset();
     ModulesTutorialUtil.UnlockInteractable(this.modulesScreen);
     this.StepComplete();
 }
예제 #3
0
 private void OnResearchClick()
 {
     this.modulesScreen.selectedModuleView.ResearchButton.GetComponent <Button>().onClick.RemoveListener(new UnityAction(this.OnResearchClick));
     ModulesTutorialUtil.ResetOffset();
     ModulesTutorialUtil.UnlockInteractable(this.modulesScreen);
     this.StepComplete();
 }
예제 #4
0
 private void OnComplete()
 {
     TutorialCanvas.Instance.dialog.PopupContinue = null;
     Destroy(this.collectionSlot.gameObject.GetComponent <CanvasGroup>());
     ModulesTutorialUtil.ResetOffset();
     ModulesTutorialUtil.UnlockInteractable(this.modulesScreen);
     this.modulesScreen.Hide();
     ModulesTutorialSystem.tutorialActive = true;
     this.StepComplete();
 }
예제 #5
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();
        }
예제 #6
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();
        }