Commit 6199b686 authored by 13정준영's avatar 13정준영

added gun sfx

parent 89579906
......@@ -201,6 +201,9 @@ MonoBehaviour:
endPoint: {x: 0, y: 0, z: 0}
maxRemainedTime: 1
perfectZ: 10
hitSfx:
- {fileID: 8300000, guid: c2f12704acf658247b2140ac0cf42ba5, type: 3}
- {fileID: 8300000, guid: 555197e3a8315ad44844278d16b1e3fb, type: 3}
ring: {fileID: 0}
--- !u!96 &3626977960969211900
TrailRenderer:
......
......@@ -108,3 +108,7 @@ MonoBehaviour:
endPoint: {x: 0, y: -3, z: 0}
maxRemainedTime: 3
perfectZ: 0
hitSfx:
- {fileID: 8300000, guid: e60d0bfc8448c5040af14e9faeaecae5, type: 3}
- {fileID: 8300000, guid: b90743fe091960d4f837d44bbd2ad318, type: 3}
direction: {x: 0, y: 0, z: 0}
......@@ -108,3 +108,7 @@ MonoBehaviour:
endPoint: {x: -5, y: 0, z: 0}
maxRemainedTime: 3
perfectZ: 0
hitSfx:
- {fileID: 8300000, guid: e60d0bfc8448c5040af14e9faeaecae5, type: 3}
- {fileID: 8300000, guid: b90743fe091960d4f837d44bbd2ad318, type: 3}
direction: {x: 0, y: 0, z: 0}
......@@ -108,3 +108,7 @@ MonoBehaviour:
endPoint: {x: 5, y: 0, z: 0}
maxRemainedTime: 3
perfectZ: 0
hitSfx:
- {fileID: 8300000, guid: e60d0bfc8448c5040af14e9faeaecae5, type: 3}
- {fileID: 8300000, guid: b90743fe091960d4f837d44bbd2ad318, type: 3}
direction: {x: 0, y: 0, z: 0}
......@@ -108,3 +108,7 @@ MonoBehaviour:
endPoint: {x: 0, y: 3, z: 0}
maxRemainedTime: 3
perfectZ: 0
hitSfx:
- {fileID: 8300000, guid: e60d0bfc8448c5040af14e9faeaecae5, type: 3}
- {fileID: 8300000, guid: b90743fe091960d4f837d44bbd2ad318, type: 3}
direction: {x: 0, y: 0, z: 0}
fileFormatVersion: 2
guid: f90eec587b051f74d9f6fe7febae32f5
ModelImporter:
serializedVersion: 26
internalIDToNameTable:
- first:
74: -6636562736501896754
second: FireAnim.001
- first:
74: 2838511927763375084
second: Armature|FireAnim
- first:
74: -6318407522044431312
second: Armature|InspectAnim
- first:
74: -2060975514484918625
second: Armature|RloadAnim
- first:
74: 6016511513261805668
second: Glock|RloadAnim
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 846100b5d7dbac243ac89372bc3675d4
ModelImporter:
serializedVersion: 26
internalIDToNameTable:
- first:
74: 2838511927763375084
second: Armature|FireAnim
- first:
74: -6318407522044431312
second: Armature|InspectAnim
- first:
74: -2060975514484918625
second: Armature|RloadAnim
- first:
74: 6016511513261805668
second: Glock|RloadAnim
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 395b1eafef336e14ab1d394fca5a4755
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1ea39ebb780700a4b85126ef999ea002
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 189c1e17c2446b649bf18d822f56253f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9d020e36962a1524094b4876c2e9a31d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: e1f1ffbcc1a3fdf4f950e172fd79c44a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9e687f35925e1074383861276c77794c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: a48b2f726fa0520488bd113b93e92c50
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c95e5db002a63e7428a2612f0fe0d70d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=0
IconFile=Ableton Project Info/AProject.ico
IconIndex=0
fileFormatVersion: 2
guid: 514169e6000d5c343a9702a508fb38de
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 656969fdc41446d44b76f647492df2d3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1150104e58377eb4a857dd040d9acb94
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 3a98abfe028f00d46a0ca9596abeae97
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c3a53e36b00245641a89946d3f6e5098
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: f79d7cf4d959e074c8b3493c0fa57077
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 8d0b7629de5dbd6478b5309ed51733ca
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d9a533cec04e2124e9c31541b4f63e72
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c5c074565be725b46813ce4360ee337e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 8c77108915fceef4ba9c2cd3f97fbe22
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b90743fe091960d4f837d44bbd2ad318
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 96428344116cde4459a7e633878cea38
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: e60d0bfc8448c5040af14e9faeaecae5
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: e0cf10461118ff14592a78ecd6d20365
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 555197e3a8315ad44844278d16b1e3fb
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b4b4b59b061eb8741886446b10f3b25f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c2f12704acf658247b2140ac0cf42ba5
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c27b409a1136e624c946b9dd822f0d1d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -16,6 +16,8 @@ public abstract class NoteObject : MonoBehaviour
public float maxRemainedTime = 5;
public float perfectZ = 10;
public AudioClip[] hitSfx;
protected virtual void OnDestroy()
{
......@@ -28,7 +30,20 @@ public abstract class NoteObject : MonoBehaviour
public virtual void NoteHit(JudgeResult judge)
{
AudioClip hitClip = null;
// play hit sound
if (judge.type == JudgeType.Perfect)
hitClip = hitSfx[0];
if (judge.type == JudgeType.Hit)
hitClip = hitSfx[1];
if (hitClip)
{
AudioSource.PlayClipAtPoint(hitClip, Vector3.zero);
}
GameObject hitEffect = null;
// hit effect
if (judge.type == JudgeType.Perfect)
hitEffect = PlayEngine.inst.hitEffectPrefabs[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment