备份CatanBuilding瘦身独立工程
This commit is contained in:
13
Assets/Scripts/EventBingo/EventBingoBaseballFly.cs
Normal file
13
Assets/Scripts/EventBingo/EventBingoBaseballFly.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user