UI换了很多,spine主视觉停用

This commit is contained in:
2026-06-15 20:17:25 +08:00
parent 5eec879582
commit 216ab08e8d
3634 changed files with 814422 additions and 382766 deletions
@@ -1,4 +1,4 @@
%YAML 1.1
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1769058375999623149
GameObject:
@@ -11,6 +11,8 @@ GameObject:
- component: {fileID: 6249172551117239467}
- component: {fileID: 2228420748506963945}
- component: {fileID: 9181156495103861001}
- component: {fileID: 8888888888888888801}
- component: {fileID: 8888888888888888802}
m_Layer: 0
m_Name: systemMessagePrefab
m_TagString: Untagged
@@ -81,7 +83,7 @@ MonoBehaviour:
m_MinWidth: -1
m_MinHeight: -1
m_PreferredWidth: -1
m_PreferredHeight: -1
m_PreferredHeight: 30
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 2
@@ -196,4 +198,3 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_HorizontalFit: 0
m_VerticalFit: 2
@@ -1,4 +1,4 @@
%YAML 1.1
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1769058375999623149
GameObject:
@@ -11,6 +11,8 @@ GameObject:
- component: {fileID: 6249172551117239467}
- component: {fileID: 2228420748506963945}
- component: {fileID: 9181156495103861001}
- component: {fileID: 7777777777777777701}
- component: {fileID: 7777777777777777702}
m_Layer: 0
m_Name: worldSystemMessagePrefab
m_TagString: Untagged
@@ -81,7 +83,7 @@ MonoBehaviour:
m_MinWidth: -1
m_MinHeight: -1
m_PreferredWidth: -1
m_PreferredHeight: -1
m_PreferredHeight: 30
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 2
@@ -196,4 +198,3 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_HorizontalFit: 0
m_VerticalFit: 2
+34
View File
@@ -98,6 +98,23 @@ public class roomDetails : MonoBehaviour
{
_service = service;
UIBackStack.RegisterOrBump(
this,
() => this != null && gameObject != null && gameObject.activeInHierarchy,
() =>
{
if (_spawnedRoomRankingInstance != null)
{
UIBackStack.Unregister(_spawnedRoomRankingInstance);
Destroy(_spawnedRoomRankingInstance);
_spawnedRoomRankingInstance = null;
return true;
}
Destroy(gameObject);
return true;
});
if (_service == null)
{
Debug.LogWarning("[roomDetails] ArenaRoomService is missing.");
@@ -172,6 +189,8 @@ public class roomDetails : MonoBehaviour
private void OnDestroy()
{
UIBackStack.Unregister(this);
if (_service != null)
{
_service.OnRoomSnapshotChanged -= HandleRoomSnapshotChanged;
@@ -244,6 +263,7 @@ public class roomDetails : MonoBehaviour
if (_spawnedRoomRankingInstance != null)
{
UIBackStack.Unregister(_spawnedRoomRankingInstance);
Destroy(_spawnedRoomRankingInstance);
_spawnedRoomRankingInstance = null;
}
@@ -1192,6 +1212,20 @@ public class roomDetails : MonoBehaviour
}
}
UIBackStack.RegisterOrBump(
_spawnedRoomRankingInstance,
() => _spawnedRoomRankingInstance != null && _spawnedRoomRankingInstance.activeInHierarchy,
() =>
{
if (_spawnedRoomRankingInstance != null)
{
Destroy(_spawnedRoomRankingInstance);
_spawnedRoomRankingInstance = null;
}
return true;
});
rankingListPrefab ranking = _spawnedRoomRankingInstance.GetComponent<rankingListPrefab>();
if (ranking == null)
{