This commit is contained in:
CortexCore
2024-12-30 21:34:37 +08:00
parent 385220e0f6
commit 421ffc2c15
36 changed files with 41 additions and 40 deletions

View File

@@ -51,7 +51,6 @@ namespace Net.Like.Xue.Tokyo.GameService
if (string.IsNullOrEmpty(portalNode.MapName?.Value) is false)
{
_waitPlayer?.TrySetCanceled();
_waitPlayer = new();
await _gameMapService.StartMapAsync(portalNode.MapName.Value);

View File

@@ -166,6 +166,7 @@ namespace Net.Like.Xue.Tokyo
if (go)
Object.Destroy(go);
}
_entities.Clear();
_healthService.OnHealthChanged-=OnHealthChanged;
}
private void OnHealthChanged(int arg1, int arg2, int arg3, object arg4)

View File

@@ -26,10 +26,9 @@
<ui:Label tabindex="-1" text="100" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; -unity-text-align: middle-center; -unity-font-style: bold;" />
</ui:VisualElement>
</ui:VisualElement>
<BITKit.UX.TabBar tabs="主页,记录" name="menu-tab" CurrentTab="0" style="position: absolute; left: 64px; right: 64px; top: 49px; flex-direction: row; justify-content: center;" />
<BITKit.UX.TabContainer TabPath="menu-tab" style="position: absolute; left: 32px; top: 220px; right: 32px; bottom: 32px;">
<ui:Instance template="ux_menu_home" name="ux_menu_home" style="flex-grow: 1;" />
<ui:VisualElement style="flex-grow: 1;" />
<ui:VisualElement style="flex-grow: 1;" />
</BITKit.UX.TabContainer>
<BITKit.UX.TabBar tabs="主页,记录" name="menu-tab" CurrentTab="0" allowFocus="false" style="position: absolute; left: 64px; right: 64px; top: 49px; flex-direction: row; justify-content: center;" />
</ui:UXML>