void Awake() { #if UNITY_EDITOR if (UnityEditor.BuildPipeline.isBuildingPlayer) { return; } #endif // NeverDestroy = false; // if (NeverDestroy) //{ // if (mSource.ManagerHasASimilarSource()) // { // Object.Destroy (this); // return; // } // else // { // if (Application.isPlaying) // DontDestroyOnLoad (gameObject); // } //} mSource.owner = this; mSource.Awake(); }