Beispiel #1
0
        // Update is called once per frame
        void Update()
        {
            //gl.Test(40);
            gl.Update();

            if (dialogue == null && currentDialogue < dialogues.Length)
            {
                dialogue = new Dialogue(dialogues[currentDialogue], GameObject.Find("EffectsCamera").GetComponent <CRTScreen>(), GetComponent <Camera>());
            }


            if (dialogue != null)
            {
                dialogue.Update();
                if (dialogue.isDone)
                {
                    dialogue           = null;
                    GameSettings.state = GameSettings.GameState.Game;
                    currentDialogue++;
                }
            }
        }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     gl.Test(40);
     gl.Update();
 }