fix 改為能抓到隱藏物件

This commit is contained in:
chiyu.lin 2025-11-19 13:52:06 +08:00
parent 81ae31f18c
commit 9dc2a1985e
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ public class ServerGameTalkingPanel : MonoBehaviour
private void Awake()
{
Instance = this;
customReportScript = gameObject.GetComponentInChildren<CustomerReportSystem>();
customReportScript = gameObject.GetComponentInChildren<CustomerReportSystem>(includeInactive: true);
}
// Start is called once before the first execution of Update after the MonoBehaviour is created

View File

@ -31,7 +31,7 @@ public class ServerGameTypingPanel : MonoBehaviour
private void Awake()
{
Instance = this;
customReportScript = gameObject.GetComponentInChildren<CustomerReportSystem>();
customReportScript = gameObject.GetComponentInChildren<CustomerReportSystem>(includeInactive: true);
}
public void processStep(int step)