You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/Animations/ScaleAnimation.cs

18 lines
460 B
C#

using D2D.Utilities;
using D2D.Utils;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using UnityEngine;
namespace D2D.Animations
{
public class ScaleAnimation : DAnimation
{
protected override Tween CreateTween()
{
return _isFrom ? Target.DOScale(Target.localScale.x, CalculatedDuration).From(CalculatedTo) :
Target.DOScale(CalculatedTo, CalculatedDuration);
}
}
}