using UnityEngine; public class Logger : MonoBehaviour { private void Awake() { #if !UNITY_EDITOR Debug.unityLogger.logEnabled = false; #endif } }