地图相关协议

This commit is contained in:
2025-08-25 23:56:28 +08:00
parent a3768e4aa2
commit 110daec6ea
13 changed files with 111 additions and 33 deletions

View File

@@ -20,13 +20,14 @@ namespace NBF
{
if (btn == BtnLogin)
{
var unitGameObject = new GameObject("Unit");
var unit = Entity.Create<Unit>(App.Main, true, true);
var unitUnity = unit.AddComponent<UnitUnityComponent>();
unitUnity.SetGameObject(unitGameObject);
// App.Main.add
// LoginHelper.Login(InputAccount.text).Coroutine();
OnLoginClick().Coroutine();
}
}
private async FTask OnLoginClick()
{
await LoginHelper.Login(InputAccount.text);
await MapHelper.Enter(99);
}
}
}