Tutorial.TutorialAIManager.Update C# (CSharp) Méthode

Update() public méthode

public Update ( ) : void
Résultat void
        public void Update()
        {
            if (this.startTextRollingFlag) {
                if (this.delay < this.delayInterval) {
                    this.delay += Time.deltaTime;
                    return;
                }
                else {
                    if (this.stringLetterCounter < this.dialogue.Length) {
                        //#DEBUG
                        if (this.debugFlag) {
                            this.nextStepButton.interactable = true;
                            this.dialogueText.text = this.dialogue;
                            this.stringLetterCounter = this.dialogue.Length;
                        }
                        else {
                            this.nextStepButton.interactable = false;
                            this.dialogueText.text = this.dialogueText.text.Insert(this.dialogueText.text.Length, this.dialogue[this.stringLetterCounter].ToString());
                            this.stringLetterCounter++;
                        }
                    }
                    else {
                        this.startTextRollingFlag = false;
                        if (!this.isTutorialFinished) {
                            this.nextStepButton.interactable = true;
                        }
                    }
                    this.delay = 0f;
                }
            }

            if (!this.isInitialized) {
                this.minimap.enabled = false;
                this.isInitialized = true;
            }
        }