Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Animations
- {
- public static Sequence BounceAndChangeColor(Transform obj, IColorable colorable, Color color)
- {
- var seq = DOTween.Sequence();
- seq.Append(obj.DOScaleY(0.8f, 0.2f));
- seq.Insert(0.425f,obj.DOScaleY(0.9f, 0.2f));
- seq.Insert(0.05f,obj.DOPunchRotation(new Vector3(0,8,0),.5f));
- seq.Insert(0.2f,DOTween.To(()=>colorable.Color,x=>colorable.Color=x,color,0.15f).SetEase(Ease.OutFlash));
- return seq;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement