Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
 public override void StartTutorial(GameObject arrow, TutorialManager manager)
 {
     base.StartTutorial(arrow, manager);
     ShowNextText();
     SetNextButton(ShowNextText);
 }