void ShowNextFrame() { currentNarrationFrameIndex++; NarrationInfo currentNarrationInfo = CurrentNarrationInfo(); if (currentNarrationInfo != null) { UpdateView(currentNarrationInfo); } else { Debug.LogError("narration info could not be found for index " + currentNarrationFrameIndex); } }
void UpdateView(NarrationInfo narrationInfo) { dialogText.text = narrationInfo.dialog; teleType.Init(); }