public virtual void OnValidate() { if (Application.isPlaying == true) { return; } if (this.serviceManager == null) { this.serviceManager = this.GetComponent <ServiceManagerBase>(); } }
public virtual void OnValidate() { if (Application.isPlaying == true) { return; } #if UNITY_EDITOR if (UnityEditor.EditorApplication.isUpdating == true) { return; } #endif if (this.serviceManager == null) { this.serviceManager = this.GetComponent <ServiceManagerBase>(); } }