1 line
454 B
JSON
1 line
454 B
JSON
{"csharpCode": "var es = GameObject.Find(\"EventSystem\"); if (es != null) { var input = es.GetComponent<UnityEngine.EventSystems.StandaloneInputModule>(); if (input == null) { input = es.AddComponent<UnityEngine.EventSystems.StandaloneInputModule>(); Debug.Log(\"[MCP] 已添加 StandaloneInputModule\"); } else { Debug.Log(\"[MCP] StandaloneInputModule 已存在\"); } } else { Debug.LogError(\"[MCP] EventSystem 未找到\"); }", "isMethodBody": true} |