Add : Rtpc progression on staircase + events

This commit is contained in:
Jahnisse
2026-06-17 15:59:05 +02:00
parent 3446cb9ba3
commit 7efef2e8bc
6 changed files with 84 additions and 4 deletions
+19 -3
View File
@@ -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: []
+13 -1
View File
@@ -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);
}
}