Skip to content

Commit 44cbd82

Browse files
committed
Adding talk sfx events to pig chef talk clips
1 parent 117823e commit 44cbd82

File tree

6 files changed

+193
-7
lines changed

6 files changed

+193
-7
lines changed

UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef_Talk.fbx.meta

Lines changed: 72 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef_Talk2.fbx.meta

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UOP1_Project/Assets/Prefabs/Characters/PigChef.prefab

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ MonoBehaviour:
322322
footstep: {fileID: 11400000, guid: 412141fe54999534a8d2800c2a567b55, type: 2}
323323
getHit: {fileID: 11400000, guid: ff7bca3fec8a0d94f868719ec4d09492, type: 2}
324324
die: {fileID: 11400000, guid: f6bff02f672df724b932fad0c85c18c5, type: 2}
325+
talk: {fileID: 11400000, guid: 91724ce47d3ff5a4399664ebc35c1083, type: 2}
325326
--- !u!114 &5557640735889932260
326327
MonoBehaviour:
327328
m_ObjectHideFlags: 0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: 08e854ccd8588da4694c3ae040c10c5e, type: 3}
13+
m_Name: SFX_Talk
14+
m_EditorClassIdentifier:
15+
looping: 0
16+
_audioClipGroups:
17+
- sequenceMode: 0
18+
audioClips:
19+
- {fileID: 8300000, guid: c57b34905d2f289429e471b7015b450c, type: 3}
20+
- {fileID: 8300000, guid: 02452d505903591489f0ad0f80be7ac6, type: 3}
21+
- {fileID: 8300000, guid: a8b2763465042954faa66f5370ea288b, type: 3}
22+
- {fileID: 8300000, guid: 2afe870baca4739448626bc19143c422, type: 3}
23+
- {fileID: 8300000, guid: 77049037aea6ea04289a902baf264ffc, type: 3}
24+
- {fileID: 8300000, guid: b7d3f0e632eb08d42b66eb575b39ec6c, type: 3}
25+
- {fileID: 8300000, guid: eb409a44d8961b94eb22943399eec59c, type: 3}
26+
- {fileID: 8300000, guid: 250ef5fa19374344584ae0a5f77846a0, type: 3}
27+
- {fileID: 8300000, guid: 15bac80e585390e44b6f00a50a79c0dd, type: 3}
28+
- {fileID: 8300000, guid: e254e4ae0aa8bfb45bc402b3ed72bfb6, type: 3}
29+
- {fileID: 8300000, guid: a9596cf534c2abd40b7216a4bb3a0578, type: 3}
30+
- {fileID: 8300000, guid: 7a36d256849e7054a8517f690ab9e591, type: 3}

UOP1_Project/Assets/ScriptableObjects/Audio/AudioCues/SFX/Protagonist/SFX_Talk.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
3-
using UnityEngine;
1+
using UnityEngine;
42

53
public class ProtagonistAudio : CharacterAudio
64
{
7-
[SerializeField] private AudioCueSO caneSwing, liftoff, land, objectPickup, footstep, getHit, die;
5+
[SerializeField] private AudioCueSO caneSwing, liftoff, land, objectPickup, footstep, getHit, die, talk;
86

97
public void PlayFootstep() => _sfxEventChannel.RaisePlayEvent(footstep, _audioConfig, transform.position);
108
public void PlayJumpLiftoff() => _sfxEventChannel.RaisePlayEvent(liftoff, _audioConfig, transform.position);
@@ -13,5 +11,5 @@ public class ProtagonistAudio : CharacterAudio
1311
public void PlayObjectPickup() => _sfxEventChannel.RaisePlayEvent(objectPickup, _audioConfig, transform.position);
1412
public void PlayGetHit() => _sfxEventChannel.RaisePlayEvent(getHit, _audioConfig, transform.position);
1513
public void PlayDie() => _sfxEventChannel.RaisePlayEvent(die, _audioConfig, transform.position);
16-
14+
public void PlayTalk() => _sfxEventChannel.RaisePlayEvent(talk, _audioConfig, transform.position);
1715
}

0 commit comments

Comments
 (0)