public virtual void OnValidate()
        {
            if (Application.isPlaying == true)
            {
                return;
            }

            if (this.serviceManager == null)
            {
                this.serviceManager = this.GetComponent <ServiceManagerBase>();
            }
        }
Example #2
0
        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>();
            }
        }