Download data/Assets/Scripts/Common/DebugLoggerControl.cs from introvoyz042/CRESSim: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Common/DebugLoggerControl.cs
- Command line
-
hf download hf://datasets/introvoyz042/CRESSim/data/Assets/Scripts/Common/DebugLoggerControl.cs
-
curl -L -o DebugLoggerControl.cs https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Common/DebugLoggerControl.cs
558 Bytes
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class DebugLoggerControl : MonoBehaviour | |
| { | |
| // Start is called before the first frame update | |
| void Start() | |
| { | |
| Debug.unityLogger.logEnabled = m_logEnabledInEditor; | |
| Debug.unityLogger.logEnabled = m_logEnabledInBuild; | |
| } | |
| [] | |
| private bool m_logEnabledInEditor = true; | |
| [] | |
| private bool m_logEnabledInBuild = false; | |
| } | |