Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if(Mode == OperatorMode.SHOWTEXT)
        {
            if(Input.GetMouseButtonDown(0))
            {
                this.ShowDialogueBox(false);
                this.Mode = OperatorMode.IDLE;
            }
        }
        if(Mode == OperatorMode.DIALOGUETEXT)
        {
            if(Input.GetMouseButtonDown(0))
            {
                this.DialogueGUIText.guiText.text = this.DialogueString;
            }

            if(this.DialogueGUIText.guiText.text.Length != this.DialogueString.Length)
            {
                this.DialogueGUIText.guiText.text += this.DialogueString[this.DialogueGUIText.guiText.text.Length];
            }
            else
            {
                this.Thingie.renderer.enabled = true;
                this.Mode = OperatorMode.SHOWTEXT;
            }
        }
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     GameOperator.instance = this.gameObject.GetComponent<GameOperator>();
     this.Mode = OperatorMode.IDLE;
 }