using UnityEngine; public class DebugToggleManager : MonoBehaviour { public GameObject debugPanel; // El panel que contiene el logger public void ToggleDebugPanel() { if (debugPanel != null) { debugPanel.SetActive(!debugPanel.activeSelf); } } }