Files
back_cantanBuilding/Assets/Scripts/EventBingo/EventBingoBaseballFly.cs
2026-05-26 16:15:54 +08:00

14 lines
398 B
C#

using System.Threading.Tasks;
using UnityEngine;
public class EventBingoBaseballFly : RewardFly
{
public override async Task ShowAsync(CollectionItemFly itemFly)
{
Vector2 direction = itemFly.destPos - itemFly.sourcePos;
direction.Normalize();
transform.rotation = Quaternion.FromToRotation(Vector2.right, direction);
await base.ShowAsync(itemFly);
}
}