结构大修改,改成朴实无华的结构,不过度架构。能跑就行
This commit is contained in:
25
Assets/Scripts/Fishing2~/Helper/UnitHelper.cs
Normal file
25
Assets/Scripts/Fishing2~/Helper/UnitHelper.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Fantasy.Async;
|
||||
using NBC;
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public static class UnitHelper
|
||||
{
|
||||
public static async FTask InitMapUnit(this MapUnit self)
|
||||
{
|
||||
await FTask.CompletedTask;
|
||||
}
|
||||
|
||||
|
||||
public static bool IsSelf(this MapUnit self)
|
||||
{
|
||||
if (self.Id == Game.SelfId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user