// Update is called once per frame void Update() { if (on) { subtitle.gameObject.SetActive(true); if (subtitle_clip != null) { subtitle_clip.StartClip(); if (subtitle_clip.IsClipDone()) { on = false; } } } else { if (subtitle_clip != null) { subtitle_clip.Reset(); } subtitle.gameObject.SetActive(false); } }
//Start the end condition trigger. This is only called once. public void StartEndCond() { end_cond_timer = 0f; start_check_for_end_cond = true; if (dialog_clip != null) { dialog_clip.StartClip(); } }