More voicelines added, PlayDialogue function updated
This commit is contained in:
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Coming.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Coming.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c6a124544b1bffe4b98d7143af781d70
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Enjoy.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Enjoy.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1064f096f3015c74c943703650d7406b
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Excellent.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Excellent.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 254823b7963809f489ac39e4edfc6a46
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Get_Correctly.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Get_Correctly.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a122a6d15a6f1aa49893a06e3ecb16fc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Here_It_Is1.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Here_It_Is1.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6da26a4752be7ce43a29e0e1bf247e72
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Here_It_Is2.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Here_It_Is2.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0723bda80a360c4a954fee1242f8e6a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Here_You_Go.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Here_You_Go.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a2ad72c769431494e87176ee57a9dbe5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Is_Correct.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Is_Correct.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 477e8c72e4a98d84bb70bfb6e1399699
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Moment.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Moment.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35b818bce640964478f8e964b97d2294
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Order.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Order.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a68ec6ce65a198c40a587c6e0f0c8faa
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Order_Is_Ready.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Order_Is_Ready.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0aa0fe8bc08f949459ac26cef320400e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Order_Repeat.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Order_Repeat.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fc4b956c3bddc841a11bec32d579b3f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Ready_In.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Ready_In.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1629c3cacc79199489bb6696a90c6b74
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Serve.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Serve.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0322733d2ec0a5e4880d27eba19da8d4
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Terribly_Sorry_1.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Terribly_Sorry_1.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d8c0aa0bcbfc8724a87c386340b0c227
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Terribly_Sorry_2.wav
LFS
Normal file
BIN
Assets/StreamingAssets/CharacterVoicelines/Chef/Ulrich_Terribly_Sorry_2.wav
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92658b78307678e4790910a8d7799650
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -284,7 +284,7 @@ public class AudioManager : MonoBehaviour
|
||||
//=====//
|
||||
//=====//
|
||||
|
||||
public void PlayDialogue(string audioTableKey, GameObject emitter = null)
|
||||
public void PlayDialogue(string audioTableKey, GameObject emitter = null, float radioAmount = 0f)
|
||||
{
|
||||
|
||||
var dialogueEvent = FMODEvents.Instance.VoiceoverAll;
|
||||
@@ -303,6 +303,9 @@ public class AudioManager : MonoBehaviour
|
||||
instance.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes(emitter.gameObject));
|
||||
}
|
||||
|
||||
// Assign the FMOD parameter value (in this case: Continous type)
|
||||
instance.setParameterByName("Radio", radioAmount);
|
||||
|
||||
// Pin the key for programmer sound callback
|
||||
GCHandle stringHandle = GCHandle.Alloc(audioTableKey);
|
||||
instance.setUserData(GCHandle.ToIntPtr(stringHandle));
|
||||
|
||||
@@ -3,11 +3,11 @@ using UnityEngine;
|
||||
public class VoiceoverTester : MonoBehaviour
|
||||
{
|
||||
//[Tooltip("Audio Table key")]
|
||||
public string dialogueKey = "Professor/Madis_Printing2";
|
||||
public string dialogueKey = "Chef/Ulrich_Terribly_Sorry1";
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
AudioManager.Instance.PlayDialogue(dialogueKey, gameObject);
|
||||
AudioManager.Instance.PlayDialogue(dialogueKey, gameObject, 0f);
|
||||
//Debug.LogError("Voiceline played (in 3D)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user