private void ActionEnded(ICutsceneAction obj) { activeIndex++; if (activeIndex < actionObjects.Count) { SetupAction(actions[activeIndex]); } else if (OnFinished != null) { OnFinished(); } else { Debug.Log("No More Actions"); } }
private void CutsceneStep() { ICutsceneAction action = playingCutscene.actions[stepIndex]; action.Execute(); }
private void SetupAction(ICutsceneAction action) { action.OnEnded += ActionEnded; action.Start(); }
private void TweenUpdated(ICutsceneAction tweenAction, float size) { target.orthographicSize = size; }