Add : Rtpc progression on staircase + events
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8db7677b0e46d7941850fe187d339609
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 378a69c431f289047a12667e3161d4ab
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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: []
|
||||
|
||||
@@ -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)
|
||||
@@ -288,4 +293,11 @@ public class SpiralStaircase : MonoBehaviour
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
//--Sound--------------
|
||||
private void SetRtpc()
|
||||
{
|
||||
float rtpcValue = _state.TotalProgression;
|
||||
AKRESULT aKRESULT = AkSoundEngine.SetRTPCValue("BinauralFREQ_Rtpc", rtpcValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user