浏览代码

Adding talk sfx events to pig chef talk clips

/main
Amel Negra 3 年前
当前提交
d9d8d631
共有 6 个文件被更改,包括 193 次插入7 次删除
  1. 73
      UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef_Talk.fbx.meta
  2. 80
      UOP1_Project/Assets/Art/Characters/PigChef/Animation/PigChef_Talk2.fbx.meta
  3. 1
      UOP1_Project/Assets/Prefabs/Characters/PigChef.prefab
  4. 8
      UOP1_Project/Assets/Scripts/Characters/ProtagonistAudio.cs
  5. 30
      UOP1_Project/Assets/ScriptableObjects/Audio/AudioCues/SFX/Protagonist/SFX_Talk.asset
  6. 8
      UOP1_Project/Assets/ScriptableObjects/Audio/AudioCues/SFX/Protagonist/SFX_Talk.asset.meta

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


animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
clipAnimations:
- serializedVersion: 16
name: talk
takeName: talk
internalID: 0
firstFrame: 0
lastFrame: 200
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
hasAdditiveReferencePose: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events:
- time: 0.059539806
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.20708075
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.42347422
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.60052335
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.72839224
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.86609715
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
transformMask: []
maskType: 3
maskSource: {instanceID: 0}
additiveReferencePoseFrame: 0
isReadable: 0
meshes:
lODScreenPercentages: []

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


animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
clipAnimations:
- serializedVersion: 16
name: talk2
takeName: talk2
internalID: 0
firstFrame: 1
lastFrame: 250
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
hasAdditiveReferencePose: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events:
- time: 0
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.14754094
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.36393443
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.54098356
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.66885245
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.80655736
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.9311475
functionName: PlayTalk
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
transformMask: []
maskType: 3
maskSource: {instanceID: 0}
additiveReferencePoseFrame: 0
isReadable: 0
meshes:
lODScreenPercentages: []

1
UOP1_Project/Assets/Prefabs/Characters/PigChef.prefab


footstep: {fileID: 11400000, guid: 412141fe54999534a8d2800c2a567b55, type: 2}
getHit: {fileID: 11400000, guid: ff7bca3fec8a0d94f868719ec4d09492, type: 2}
die: {fileID: 11400000, guid: f6bff02f672df724b932fad0c85c18c5, type: 2}
talk: {fileID: 11400000, guid: 91724ce47d3ff5a4399664ebc35c1083, type: 2}
--- !u!114 &5557640735889932260
MonoBehaviour:
m_ObjectHideFlags: 0

8
UOP1_Project/Assets/Scripts/Characters/ProtagonistAudio.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
[SerializeField] private AudioCueSO caneSwing, liftoff, land, objectPickup, footstep, getHit, die;
[SerializeField] private AudioCueSO caneSwing, liftoff, land, objectPickup, footstep, getHit, die, talk;
public void PlayFootstep() => _sfxEventChannel.RaisePlayEvent(footstep, _audioConfig, transform.position);
public void PlayJumpLiftoff() => _sfxEventChannel.RaisePlayEvent(liftoff, _audioConfig, transform.position);

public void PlayGetHit() => _sfxEventChannel.RaisePlayEvent(getHit, _audioConfig, transform.position);
public void PlayDie() => _sfxEventChannel.RaisePlayEvent(die, _audioConfig, transform.position);
public void PlayTalk() => _sfxEventChannel.RaisePlayEvent(talk, _audioConfig, transform.position);
}

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


%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: 08e854ccd8588da4694c3ae040c10c5e, type: 3}
m_Name: SFX_Talk
m_EditorClassIdentifier:
looping: 0
_audioClipGroups:
- sequenceMode: 0
audioClips:
- {fileID: 8300000, guid: c57b34905d2f289429e471b7015b450c, type: 3}
- {fileID: 8300000, guid: 02452d505903591489f0ad0f80be7ac6, type: 3}
- {fileID: 8300000, guid: a8b2763465042954faa66f5370ea288b, type: 3}
- {fileID: 8300000, guid: 2afe870baca4739448626bc19143c422, type: 3}
- {fileID: 8300000, guid: 77049037aea6ea04289a902baf264ffc, type: 3}
- {fileID: 8300000, guid: b7d3f0e632eb08d42b66eb575b39ec6c, type: 3}
- {fileID: 8300000, guid: eb409a44d8961b94eb22943399eec59c, type: 3}
- {fileID: 8300000, guid: 250ef5fa19374344584ae0a5f77846a0, type: 3}
- {fileID: 8300000, guid: 15bac80e585390e44b6f00a50a79c0dd, type: 3}
- {fileID: 8300000, guid: e254e4ae0aa8bfb45bc402b3ed72bfb6, type: 3}
- {fileID: 8300000, guid: a9596cf534c2abd40b7216a4bb3a0578, type: 3}
- {fileID: 8300000, guid: 7a36d256849e7054a8517f690ab9e591, type: 3}

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


fileFormatVersion: 2
guid: 91724ce47d3ff5a4399664ebc35c1083
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存