chore: add detailed logging to trace TryClickActiveHandler bug
This commit is contained in:
@@ -158,6 +158,7 @@ public class StepManager : MonoBehaviour
|
||||
System.Array.Sort(touches, (a, b) => string.Compare(a.name, b.name));
|
||||
foreach (var t in touches)
|
||||
{
|
||||
Debug.Log($"[StepManager] 检查 Touch: {t.name}, active={t.gameObject.activeInHierarchy}, CanBeClicked={t.CanBeClicked()}");
|
||||
if (t.gameObject.activeInHierarchy && t.CanBeClicked())
|
||||
{
|
||||
Debug.LogError($"====== StepManager: 模拟点击了 {t.name}! ======");
|
||||
@@ -169,6 +170,7 @@ public class StepManager : MonoBehaviour
|
||||
var shoses = Object.FindObjectsOfType<ShoseClickHandler>();
|
||||
foreach (var h in shoses)
|
||||
{
|
||||
Debug.Log($"[StepManager] 检查 Shose: {h.name}, active={h.gameObject.activeInHierarchy}, CanBeClicked={h.CanBeClicked()}");
|
||||
if (h.gameObject.activeInHierarchy && h.CanBeClicked())
|
||||
{
|
||||
Debug.LogError($"====== StepManager: 模拟点击了 {h.name}! ======");
|
||||
@@ -180,6 +182,7 @@ public class StepManager : MonoBehaviour
|
||||
var chanraos = Object.FindObjectsOfType<ChanraoTuibuHandler>();
|
||||
foreach (var h in chanraos)
|
||||
{
|
||||
Debug.Log($"[StepManager] 检查 Chanrao: {h.name}, active={h.gameObject.activeInHierarchy}, CanBeClicked={h.CanBeClicked()}");
|
||||
if (h.gameObject.activeInHierarchy && h.CanBeClicked())
|
||||
{
|
||||
Debug.LogError($"====== StepManager: 模拟点击了 {h.name}! ======");
|
||||
@@ -192,6 +195,7 @@ public class StepManager : MonoBehaviour
|
||||
System.Array.Sort(pings, (a, b) => string.Compare(b.name, a.name));
|
||||
foreach (var p in pings)
|
||||
{
|
||||
Debug.Log($"[StepManager] 检查 Ping: {p.name}, active={p.gameObject.activeInHierarchy}, CanBeClicked={p.CanBeClicked()}");
|
||||
if (p.gameObject.activeInHierarchy && p.CanBeClicked())
|
||||
{
|
||||
Debug.LogError($"====== StepManager: 模拟点击了 {p.name}! ======");
|
||||
|
||||
Reference in New Issue
Block a user