snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.63k stars 291 forks source link

Added PlayTimeline command #1024

Open GuroGuru opened 3 years ago

GuroGuru commented 3 years ago

Description

This PR is a new feature, the command PlayTimeline.

What is the current behavior?

Currently Fungus animation-related commands don't compreehend the Unity Timeline functionality, importing sequencing tool. Issue Number: #627

What is the new behavior?

The new command PlayTimeline allows specifying a Timeline object from the scene and play it during the flow. It also allows choosing whether if the flow will be blocked until the timeline stops or if it will continue the execution.

Important Notes

Other information

GuroGuru commented 3 years ago

@breadnone, thanks for the tip! By the weekend I'll update the code based on your suggestion.