进入离开地图

This commit is contained in:
2025-09-10 10:01:05 +08:00
parent 7d81e54560
commit b57cf055c5
8 changed files with 74 additions and 22 deletions

View File

@@ -1,5 +1,4 @@
using NBC;
using NBC;
using NBC.Entitas;
using Unity.Mathematics;
using UnityEngine;
@@ -77,5 +76,21 @@ namespace NBF.Fishing2
{
return Config().Type;
}
#region View
public async FTask CreateView()
{
var unitUnity = GetComponent<UnitUnityComponent>();
if (unitUnity != null)
{
unitUnity.Dispose();
}
unitUnity = AddComponent<UnitUnityComponent>();
await unitUnity.InitUnityObject();
}
#endregion
}
}