fix: ActivateExperimentObjects加第三层强制隐藏ping/chanrao+日志

This commit is contained in:
yangbear
2026-07-05 02:23:53 +08:00
parent bde6db88ef
commit 065be5a982
2 changed files with 17 additions and 2 deletions
+14
View File
@@ -270,6 +270,20 @@ public class PageController : MonoBehaviour
{
Debug.Log("PageController: [ActivateExperimentObjects] 显示实验物件");
// 强制确保所有 ping/chanrao/chanraotuibu 隐藏
var miClean = GameObject.Find("manInjury");
if (miClean != null)
{
foreach (Transform child in miClean.transform)
{
if (child.name.Contains("ping") || child.name.Contains("chanrao"))
{
child.gameObject.SetActive(false);
Debug.Log("PageController: 强制隐藏 " + child.name);
}
}
}
FindObjectOfType<AudioManager>()?.PlayExperimentBg();
FindObjectOfType<AudioManager>()?.PlayExperimentBg();
+3 -2
View File
@@ -534,7 +534,8 @@ PlayerSettings:
openGLRequireES31: 0
openGLRequireES31AEP: 0
openGLRequireES32: 0
m_TemplateCustomTags: {}
m_TemplateCustomTags:
PRODUCT_DESCRIPTION:
mobileMTRendering:
Android: 1
iPhone: 1
@@ -796,7 +797,7 @@ PlayerSettings:
webGLDebugSymbols: 0
webGLEmscriptenArgs:
webGLModulesDirectory:
webGLTemplate: APPLICATION:Default
webGLTemplate: APPLICATION:PWA
webGLAnalyzeBuildSize: 0
webGLUseEmbeddedResources: 0
webGLCompressionFormat: 2