Пример #1
0
 /// <summary>
 /// Changes <see cref="IActor.Position"/> over Z-axis over specified time using provided animation easing.
 /// </summary>
 public static async UniTask ChangePositionZAsync(this IActor actor, float posZ, float duration, EasingType easingType = default, CancellationToken cancellationToken = default)
 => await actor.ChangePositionAsync(new Vector3(actor.Position.x, actor.Position.y, posZ), duration, easingType, cancellationToken);