Exemplo n.º 1
0
 /// <summary>
 /// Changes <see cref="IActor.Scale"/> over Z-axis over specified time using provided animation easing.
 /// </summary>
 public static async UniTask ChangeScaleZAsync(this IActor actor, float scaleZ, float duration, EasingType easingType = default, CancellationToken cancellationToken = default)
 => await actor.ChangeScaleAsync(new Vector3(actor.Scale.x, actor.Scale.y, scaleZ), duration, easingType, cancellationToken);