diff --git a/Assets/DisableAfterFinish.cs b/Assets/DisableAfterFinish.cs index 23ea0a9a..d3bcc486 100644 --- a/Assets/DisableAfterFinish.cs +++ b/Assets/DisableAfterFinish.cs @@ -17,11 +17,17 @@ public class DisableAfterFinish : MonoBehaviour private void OnEnable() { + if (disableController == null) + return; + disableController.DoDisable += Disable; } private void OnDisable() { + if (disableController == null) + return; + disableController.DoDisable -= Disable; } diff --git a/Assets/_Monuments/Prefabs/Big/Monument_Origin.prefab b/Assets/_Monuments/Prefabs/Big/Monument_Origin.prefab index bc7c3ff7..25caa52e 100644 --- a/Assets/_Monuments/Prefabs/Big/Monument_Origin.prefab +++ b/Assets/_Monuments/Prefabs/Big/Monument_Origin.prefab @@ -267,7 +267,7 @@ MonoBehaviour: Sound: Clip: {fileID: 0} Volume: 1 - Priority: 128 + Priority: 256 Pitch: 1 Zone: 0 PlayOnAwake: 0