public void SetDebugMode(bool flag) { Main.Logger.LogDebug($"[BTDebug] Setting debug mode to {flag}"); debugMode = flag; if (inspectorPrefab) { RuntimeInspector inspector = inspectorPrefab.GetComponentInChildren <RuntimeInspector>(); inspector.DebugMode = debugMode; } if (inspectorGO) { RuntimeInspector inspector = inspectorGO.GetComponentInChildren <RuntimeInspector>(); inspector.DebugMode = debugMode; } }
private void ApplySettings(GameObject go) { RuntimeInspector inspector = inspectorPrefab.GetComponentInChildren <RuntimeInspector>(); inspector.DebugMode = debugMode; }