Book open/close audio
This commit is contained in:
@@ -125,6 +125,11 @@ MonoBehaviour:
|
|||||||
m_ReadOnly: 0
|
m_ReadOnly: 0
|
||||||
m_SerializedLabels: []
|
m_SerializedLabels: []
|
||||||
FlaggedDuringContentUpdateRestriction: 0
|
FlaggedDuringContentUpdateRestriction: 0
|
||||||
|
- m_GUID: cf07cb3f02fb8d24db4c4dc12dcb07e7
|
||||||
|
m_Address: book_open
|
||||||
|
m_ReadOnly: 0
|
||||||
|
m_SerializedLabels: []
|
||||||
|
FlaggedDuringContentUpdateRestriction: 0
|
||||||
- m_GUID: d3a9c126b6ce32f459e9642a4dd4d3b4
|
- m_GUID: d3a9c126b6ce32f459e9642a4dd4d3b4
|
||||||
m_Address: buildup_loop1
|
m_Address: buildup_loop1
|
||||||
m_ReadOnly: 0
|
m_ReadOnly: 0
|
||||||
|
|||||||
@@ -223,6 +223,9 @@ namespace UI.CardSystem
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Already on page 0 or no book reference, exit
|
// Already on page 0 or no book reference, exit
|
||||||
|
|
||||||
|
// Play book closing sound
|
||||||
|
AudioManager.Instance.LoadAndPlayUIAudio("book_open", false);
|
||||||
// Restore input mode before popping
|
// Restore input mode before popping
|
||||||
if (Input.InputManager.Instance != null)
|
if (Input.InputManager.Instance != null)
|
||||||
{
|
{
|
||||||
@@ -292,6 +295,9 @@ namespace UI.CardSystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
base.TransitionIn();
|
base.TransitionIn();
|
||||||
|
|
||||||
|
// Play book open audio
|
||||||
|
AudioManager.Instance.LoadAndPlayUIAudio("book_open", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void TransitionOut()
|
public override void TransitionOut()
|
||||||
|
|||||||
49
Assets/Sound/UI/book_open.asset
Normal file
49
Assets/Sound/UI/book_open.asset
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1307931743 &6418180475301049370
|
||||||
|
AudioRandomContainer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: book_open
|
||||||
|
m_Volume: 0
|
||||||
|
m_Pitch: 0
|
||||||
|
m_AutomaticTriggerTime: 0
|
||||||
|
m_LoopCount: 1
|
||||||
|
m_VolumeRandomizationRange: {x: 0, y: 0}
|
||||||
|
m_PitchRandomizationRange: {x: -285.93643, y: 261.8562}
|
||||||
|
m_AutomaticTriggerTimeRandomizationRange: {x: 0, y: 0}
|
||||||
|
m_LoopCountRandomizationRange: {x: 0, y: 0}
|
||||||
|
m_Elements:
|
||||||
|
- {fileID: 8886531884490723528}
|
||||||
|
- {fileID: 7073870801905498221}
|
||||||
|
m_AvoidRepeatingLast: 1
|
||||||
|
m_PlaybackMode: 2
|
||||||
|
m_TriggerMode: 0
|
||||||
|
m_AutomaticTriggerMode: 1
|
||||||
|
m_LoopMode: 2
|
||||||
|
m_VolumeRandomizationEnabled: 0
|
||||||
|
m_PitchRandomizationEnabled: 1
|
||||||
|
m_AutomaticTriggerTimeRandomizationEnabled: 0
|
||||||
|
m_LoopCountRandomizationEnabled: 0
|
||||||
|
--- !u!1233149941 &7073870801905498221
|
||||||
|
AudioContainerElement:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: book_open2_{7073870801905498221}
|
||||||
|
m_AudioClip: {fileID: 8300000, guid: 51841dd49c3ef634db22534e7eb52854, type: 3}
|
||||||
|
m_Volume: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!1233149941 &8886531884490723528
|
||||||
|
AudioContainerElement:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: book_open1_{8886531884490723528}
|
||||||
|
m_AudioClip: {fileID: 8300000, guid: e5568b448c04e3a40969921217ca7db9, type: 3}
|
||||||
|
m_Volume: 0
|
||||||
|
m_Enabled: 1
|
||||||
8
Assets/Sound/UI/book_open.asset.meta
Normal file
8
Assets/Sound/UI/book_open.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cf07cb3f02fb8d24db4c4dc12dcb07e7
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 6418180475301049370
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Sound/UI/book_open1.wav
Normal file
BIN
Assets/Sound/UI/book_open1.wav
Normal file
Binary file not shown.
23
Assets/Sound/UI/book_open1.wav.meta
Normal file
23
Assets/Sound/UI/book_open1.wav.meta
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e5568b448c04e3a40969921217ca7db9
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Sound/UI/book_open2.wav
Normal file
BIN
Assets/Sound/UI/book_open2.wav
Normal file
Binary file not shown.
23
Assets/Sound/UI/book_open2.wav.meta
Normal file
23
Assets/Sound/UI/book_open2.wav.meta
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 51841dd49c3ef634db22534e7eb52854
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 8
|
||||||
|
defaultSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
preloadAudioData: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user