From c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 19 Apr 2020 17:19:32 -0400 Subject: Inital commit --- .../Runtime/Playables/ITimeControl.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Playables/ITimeControl.cs (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Playables/ITimeControl.cs') diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Playables/ITimeControl.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Playables/ITimeControl.cs new file mode 100644 index 0000000..5d986ae --- /dev/null +++ b/Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Playables/ITimeControl.cs @@ -0,0 +1,27 @@ +namespace UnityEngine.Timeline +{ + /// + /// Interface that can be implemented by MonoBehaviours indicating that they receive time-related control calls from a PlayableGraph. + /// + /// + /// Implementing this interface on MonoBehaviours attached to GameObjects under control by control-tracks will cause them to be notified when associated Timeline clips are active. + /// + public interface ITimeControl + { + /// + /// Called each frame the Timeline clip is active. + /// + /// The local time of the associated Timeline clip. + void SetTime(double time); + + /// + /// Called when the associated Timeline clip becomes active. + /// + void OnControlTimeStart(); + + /// + /// Called when the associated Timeline clip becomes deactivated. + /// + void OnControlTimeStop(); + } +} -- cgit v1.2.3