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.
18 lines
460 B
C#
18 lines
460 B
C#
2 months ago
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|