示例#1
0
        public override void StartTutorial(GameObject arrow, TutorialManager manager)
        {
            inputPopup.SetActive(true);
            SetHeader();
            inputText = inputPopup.GetComponentInChildren <TMP_InputField>();

            base.manager = manager;

            submit.onClick.RemoveAllListeners();
            submit.onClick.AddListener(CompleteTutorial);

            inputText.text = string.Empty;
        }
示例#2
0
        public override void StartTutorial(GameObject arrow, TutorialManager manager)
        {
            base.StartTutorial(arrow, manager);

            if (keyCount != 0)
            {
                ShowNextText();
            }

            DisableButtons();

            SetNextButton(ShowNextText);
            continueButton.onClick.AddListener(CompleteTutorial);
        }
示例#3
0
        public virtual void StartTutorial(GameObject arrow, TutorialManager manager)
        {
            this.manager = manager;
            FillJsonKey();

            if (moveCamera)
            {
                playerCamera.transform.position = position;
            }

            Arrow = arrow;

            GameObject narrator = manager.Narrator;

            explainText = narrator.GetComponentInChildren <TextMeshProUGUI>();
            next        = narrator.GetComponentInChildren <Button>();
            index       = 0;
        }
示例#4
0
        public override void StartTutorial(GameObject arrow, TutorialManager manager)
        {
            base.StartTutorial(arrow, manager);

            Building             building             = FindObjectOfType <Building>();
            AbstractBuildingTile abstractBuildingTile = building.GetComponentInParent <AbstractBuildingTile>();

            meshRenderer = abstractBuildingTile.GetComponent <Renderer>();

            Canvas buildingCanvas = building.GetComponentInChildren <Canvas>();

            oldMaterial = meshRenderer.sharedMaterial;

            prefabInstance = Instantiate(arrow, buildingCanvas.transform);

            prefabInstance.transform.localScale = new Vector3(scale, scale, scale);
            prefabInstance.transform.Translate(Vector3.up * offsetDistance, Space.Self);
            meshRenderer.sharedMaterial = material;

            OpenMarketEvent.ParameterlessListeners += OnMarketScreen;
        }
 public override void StartTutorial(GameObject arrow, TutorialManager manager)
 {
     base.StartTutorial(arrow, manager);
     ShowNextText();
     SetNextButton(ShowNextText);
 }