结构大修改,改成朴实无华的结构,不过度架构。能跑就行
This commit is contained in:
25
Assets/Scripts/Fishing2~/Helper/MoveHelper.cs
Normal file
25
Assets/Scripts/Fishing2~/Helper/MoveHelper.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user