diff --git a/Assets/Wwise/ScriptableObjects/Event/BD1064E1-788A-471F-825C-B2933C73EE22.asset b/Assets/Wwise/ScriptableObjects/Event/BD1064E1-788A-471F-825C-B2933C73EE22.asset new file mode 100644 index 00000000..aac00fb8 --- /dev/null +++ b/Assets/Wwise/ScriptableObjects/Event/BD1064E1-788A-471F-825C-B2933C73EE22.asset @@ -0,0 +1,18 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c945e91273b87a045b723cc8ddded56c, type: 3} + m_Name: BD1064E1-788A-471F-825C-B2933C73EE22 + m_EditorClassIdentifier: AK.Wwise.Unity.API.WwiseTypes::WwiseEventReference + objectName: Stop_Binaural_WhisperedVoices + id: 3791737107 + guid: BD1064E1-788A-471F-825C-B2933C73EE22 + IsInUserDefinedSoundBank: 0 diff --git a/Assets/Wwise/ScriptableObjects/Event/BD1064E1-788A-471F-825C-B2933C73EE22.asset.meta b/Assets/Wwise/ScriptableObjects/Event/BD1064E1-788A-471F-825C-B2933C73EE22.asset.meta new file mode 100644 index 00000000..7fe18ed4 --- /dev/null +++ b/Assets/Wwise/ScriptableObjects/Event/BD1064E1-788A-471F-825C-B2933C73EE22.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8db7677b0e46d7941850fe187d339609 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wwise/ScriptableObjects/Event/F3E9AD63-271B-45CD-9B1A-4C26552FFC5E.asset b/Assets/Wwise/ScriptableObjects/Event/F3E9AD63-271B-45CD-9B1A-4C26552FFC5E.asset new file mode 100644 index 00000000..891880ee --- /dev/null +++ b/Assets/Wwise/ScriptableObjects/Event/F3E9AD63-271B-45CD-9B1A-4C26552FFC5E.asset @@ -0,0 +1,18 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c945e91273b87a045b723cc8ddded56c, type: 3} + m_Name: F3E9AD63-271B-45CD-9B1A-4C26552FFC5E + m_EditorClassIdentifier: AK.Wwise.Unity.API.WwiseTypes::WwiseEventReference + objectName: Play_AMB_Staircase_Emitter_WhisperedVoices_Apogee + id: 700880762 + guid: F3E9AD63-271B-45CD-9B1A-4C26552FFC5E + IsInUserDefinedSoundBank: 0 diff --git a/Assets/Wwise/ScriptableObjects/Event/F3E9AD63-271B-45CD-9B1A-4C26552FFC5E.asset.meta b/Assets/Wwise/ScriptableObjects/Event/F3E9AD63-271B-45CD-9B1A-4C26552FFC5E.asset.meta new file mode 100644 index 00000000..e94f8755 --- /dev/null +++ b/Assets/Wwise/ScriptableObjects/Event/F3E9AD63-271B-45CD-9B1A-4C26552FFC5E.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 378a69c431f289047a12667e3161d4ab +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Content/Scenes/Theatre.unity b/Assets/_Content/Scenes/Theatre.unity index 11a37789..dea51b73 100644 --- a/Assets/_Content/Scenes/Theatre.unity +++ b/Assets/_Content/Scenes/Theatre.unity @@ -51018,16 +51018,32 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} propertyPath: wwiseEvents.Array.size - value: 0 + value: 2 objectReference: {fileID: 0} - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} propertyPath: wwiseEvents.Array.data[0].label - value: CutMusic + value: Stop binaural + objectReference: {fileID: 0} + - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} + propertyPath: wwiseEvents.Array.data[1].label + value: Apogee Staircase Emitter + objectReference: {fileID: 0} + - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} + propertyPath: wwiseEvents.Array.data[0].triggerOnEnter + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} + propertyPath: wwiseEvents.Array.data[1].triggerOnEnter + value: 1 objectReference: {fileID: 0} - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} propertyPath: wwiseEvents.Array.data[0].wwiseEvent.WwiseObjectReference value: - objectReference: {fileID: 11400000, guid: 38dd55a5372001d40a1e73d47ab9e703, type: 2} + objectReference: {fileID: 11400000, guid: 8db7677b0e46d7941850fe187d339609, type: 2} + - target: {fileID: 7365274582226833486, guid: aec729894f9f57b46b671ad6de6dfd31, type: 3} + propertyPath: wwiseEvents.Array.data[1].wwiseEvent.WwiseObjectReference + value: + objectReference: {fileID: 11400000, guid: 378a69c431f289047a12667e3161d4ab, type: 2} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] diff --git a/Assets/_Content/Scripts/SpiralStaircase.cs b/Assets/_Content/Scripts/SpiralStaircase.cs index 6a8ab8ce..7635712e 100644 --- a/Assets/_Content/Scripts/SpiralStaircase.cs +++ b/Assets/_Content/Scripts/SpiralStaircase.cs @@ -8,6 +8,7 @@ using UnityEngine; using UnityEngine.Events; using UnityEngine.InputSystem; using UnityEngine.Rendering.Universal; +using static UnityEngine.Rendering.DebugUI; public class SpiralStaircase : MonoBehaviour { @@ -117,7 +118,11 @@ public class SpiralStaircase : MonoBehaviour void Update() { if (_state.PlayerInside) + { Count(); + SetRtpc(); + } + } void OnTriggerEnter(Collider col) @@ -208,7 +213,7 @@ public class SpiralStaircase : MonoBehaviour private void Count() { if (!OctoPlayer.Instance) return; - + Vector2[] steps = new Vector2[4] { Vector2.up, Vector2.left, Vector2.down, Vector2.right }; Vector2 nextStep = steps[_state.Quarters % steps.Length]; @@ -288,4 +293,11 @@ public class SpiralStaircase : MonoBehaviour } }*/ } + + //--Sound-------------- + private void SetRtpc() + { + float rtpcValue = _state.TotalProgression; + AKRESULT aKRESULT = AkSoundEngine.SetRTPCValue("BinauralFREQ_Rtpc", rtpcValue); + } }