25 lines
644 B
C#
25 lines
644 B
C#
using System.Collections.Generic;
|
|
using Fantasy.Async;
|
|
using NBC;
|
|
using Unity.Mathematics;
|
|
|
|
namespace NBF.Fishing2
|
|
{
|
|
public static class MoveHelper
|
|
{
|
|
/// <summary>
|
|
/// 可以多次调用,多次调用的话会取消上一次的协程
|
|
/// </summary>
|
|
/// <param name="unit"></param>
|
|
/// <param name="targetPos"></param>
|
|
/// <returns></returns>
|
|
public static async FTask<int> MoveToAsync(this MapUnit unit, float3 targetPos)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
public static async FTask MoveToAsync(this MapUnit unit, List<float3> path)
|
|
{
|
|
}
|
|
}
|
|
} |