5 // Created by Benjamin Sherratt on 04/05/2021.
6 // Copyright © 2021 SKFX Ltd. All rights reserved.
9 using JurassicTween.Internal;
\r
13 namespace JurassicTween {
14 public static class JurassicTween {
15 public static IDisposable Tween(this Component component, float time = 1.0f) {
16 return component.Tween(time, TweenParameters.linear);
19 public static IDisposable Tween(this Component component, float time, TweenParameters tweenParameters) {
20 Context context = new Context(component, time, tweenParameters);
24 public static bool IsTweening(this GameObject gameObject) {
25 Animation animation = gameObject.GetComponent<Animation>();
26 bool tweening = ((animation != null) && animation.isPlaying);