public static Sequence Sequence() { DOTween.InitCheck(); Sequence sequence = TweenManager.GetSequence(); DG.Tweening.Sequence.Setup(sequence); return(sequence); }
private static TweenerCore <T1, T2, TPlugOptions> ApplyTo <T1, T2, TPlugOptions>(DOGetter <T1> getter, DOSetter <T1> setter, T2 endValue, float duration, ABSTweenPlugin <T1, T2, TPlugOptions> plugin = null) where TPlugOptions : struct { DOTween.InitCheck(); TweenerCore <T1, T2, TPlugOptions> tweener = TweenManager.GetTweener <T1, T2, TPlugOptions>(); if (!Tweener.Setup <T1, T2, TPlugOptions>(tweener, getter, setter, endValue, duration, plugin)) { TweenManager.Despawn(tweener, true); return(null); } return(tweener); }