From 54bf8368f9cac804b816ad8e76b9bad667b8be28 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 六月 2025 18:23:28 +0800
Subject: [PATCH] 18 子 2D卡牌客户端搭建 / 2D卡牌客户端搭建 会添加两次UIRoot的bug修复

---
 Assets/Launch/Common/SingletonMonobehaviour.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Assets/Launch/Common/SingletonMonobehaviour.cs b/Assets/Launch/Common/SingletonMonobehaviour.cs
index f954d56..a61ac98 100644
--- a/Assets/Launch/Common/SingletonMonobehaviour.cs
+++ b/Assets/Launch/Common/SingletonMonobehaviour.cs
@@ -30,7 +30,7 @@
                     GameObject _go = new GameObject();
                     _go.name = _name;
                     s_Instance = _go.AddComponent<T>();
-                    //DontDestroyOnLoad(_go);
+                    DontDestroyOnLoad(_go);
                 }
             }
             return s_Instance;

--
Gitblit v1.8.0