Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        private void ApplySettings(GameObject go)
        {
            RuntimeInspector inspector = inspectorPrefab.GetComponentInChildren <RuntimeInspector>();

            inspector.DebugMode = debugMode;
        }