コード例 #1
0
 private void ActionEnded(ICutsceneAction obj)
 {
     activeIndex++;
     if (activeIndex < actionObjects.Count)
     {
         SetupAction(actions[activeIndex]);
     }
     else if (OnFinished != null)
     {
         OnFinished();
     }
     else
     {
         Debug.Log("No More Actions");
     }
 }
コード例 #2
0
    private void CutsceneStep()
    {
        ICutsceneAction action = playingCutscene.actions[stepIndex];

        action.Execute();
    }
コード例 #3
0
 private void SetupAction(ICutsceneAction action)
 {
     action.OnEnded += ActionEnded;
     action.Start();
 }
コード例 #4
0
 private void TweenUpdated(ICutsceneAction tweenAction, float size)
 {
     target.orthographicSize = size;
 }