added sound effects
This commit is contained in:
parent
e902e2197c
commit
77e975ffca
|
@ -546,6 +546,179 @@ CapsuleCollider:
|
|||
m_Height: 2
|
||||
m_Direction: 1
|
||||
m_Center: {x: 0.000000059604645, y: 0, z: -0.00000008940697}
|
||||
--- !u!1 &83380898
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 83380899}
|
||||
- component: {fileID: 83380900}
|
||||
m_Layer: 0
|
||||
m_Name: sfx
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &83380899
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 83380898}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0.7071471, w: 0.70706654}
|
||||
m_LocalPosition: {x: 0.0050439984, y: -0.003205046, z: 0.0033000016}
|
||||
m_LocalScale: {x: 0.05882353, y: 0.058823515, z: 0.058823515}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 6166157798556501908}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!82 &83380900
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 83380898}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 8300000, guid: 14c8febf9c2adb44e96653fe750010d2, type: 3}
|
||||
m_PlayOnAwake: 0
|
||||
m_Volume: 0.072
|
||||
m_Pitch: 1
|
||||
Loop: 0
|
||||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 128
|
||||
DopplerLevel: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 8
|
||||
Pan2D: 0
|
||||
rolloffMode: 1
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
rolloffCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0.02
|
||||
value: 1
|
||||
inSlope: -50.01992
|
||||
outSlope: -50.01992
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 0.04
|
||||
value: 0.5
|
||||
inSlope: -12.50498
|
||||
outSlope: -12.50498
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 0.08
|
||||
value: 0.25
|
||||
inSlope: -3.126245
|
||||
outSlope: -3.126245
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 0.16
|
||||
value: 0.125
|
||||
inSlope: -0.78156126
|
||||
outSlope: -0.78156126
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 0.32
|
||||
value: 0.0625
|
||||
inSlope: -0.19539031
|
||||
outSlope: -0.19539031
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 0.64
|
||||
value: 0.03125
|
||||
inSlope: -0.04884758
|
||||
outSlope: -0.04884758
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: -0.020007975
|
||||
outSlope: -0.020007975
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
panLevelCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
spreadCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
reverbZoneMixCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!1 &186072705
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -4234,6 +4407,7 @@ MonoBehaviour:
|
|||
attachedLockables:
|
||||
- {fileID: 2782228159376791284}
|
||||
- {fileID: 2782228159376791287}
|
||||
unlockSound: {fileID: 83380900}
|
||||
--- !u!4 &1994180165 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 7c6479b7e0d25a747a6b2a88e81eeaa6, type: 3}
|
||||
|
@ -7704,7 +7878,7 @@ AudioSource:
|
|||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 128
|
||||
Priority: 64
|
||||
DopplerLevel: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 2
|
||||
|
@ -7800,7 +7974,7 @@ AudioSource:
|
|||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 200
|
||||
Priority: 128
|
||||
DopplerLevel: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 8
|
||||
|
@ -7941,7 +8115,7 @@ AudioSource:
|
|||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 200
|
||||
Priority: 128
|
||||
DopplerLevel: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 8
|
||||
|
@ -10736,6 +10910,7 @@ Transform:
|
|||
- {fileID: 8904949676942751277}
|
||||
- {fileID: 1994180165}
|
||||
- {fileID: 1022340735}
|
||||
- {fileID: 83380899}
|
||||
m_Father: {fileID: 1890789518}
|
||||
m_RootOrder: 9
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
|
|
|
@ -7,9 +7,11 @@ using UnityEngine;
|
|||
public class Unlocker : MonoBehaviour
|
||||
{
|
||||
public List<Lockable> attachedLockables = new List<Lockable>();
|
||||
public AudioSource unlockSound;
|
||||
public void Unlock(){
|
||||
foreach(Lockable lockable in attachedLockables){
|
||||
lockable.locked = false;
|
||||
}
|
||||
unlockSound.Play();
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue