// 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++; } } }
// Update is called once per frame void Update() { gl.Test(40); gl.Update(); }