Auch das war unerlässlich
This commit is contained in:
parent
f405a0ef9f
commit
4ab8603cfb
|
@ -85395,6 +85395,9 @@ PrefabInstance:
|
|||
- targetCorrespondingSourceObject: {fileID: 1649482374922732, guid: 79a5b937093a5864d91d9a3a836ff1d7, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1941031501}
|
||||
- targetCorrespondingSourceObject: {fileID: 1649482374922732, guid: 79a5b937093a5864d91d9a3a836ff1d7, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1941031505}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 79a5b937093a5864d91d9a3a836ff1d7, type: 3}
|
||||
--- !u!4 &1941031494 stripped
|
||||
Transform:
|
||||
|
@ -85462,6 +85465,104 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: cc147cbb4aa44e209ac96e08e57cab11, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_audioSource: {fileID: 1941031505}
|
||||
_deny: {fileID: 8300000, guid: 27e183cf8a3d7ec4b9fbb4671441b7aa, type: 3}
|
||||
--- !u!82 &1941031505
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 60399758}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 8300000, guid: 8fdfe5a0863bed240835dda67c736375, type: 3}
|
||||
m_PlayOnAwake: 0
|
||||
m_Volume: 1
|
||||
m_Pitch: 1
|
||||
Loop: 0
|
||||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 128
|
||||
DopplerLevel: 1
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
Pan2D: 0
|
||||
rolloffMode: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
rolloffCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
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
|
||||
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 &1942383895
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -4,9 +4,16 @@ namespace Interaction
|
|||
{
|
||||
public class Copier : MonoBehaviour
|
||||
{
|
||||
public AudioSource _audioSource;
|
||||
|
||||
public AudioClip _deny;
|
||||
|
||||
public void Copy()
|
||||
{
|
||||
Debug.Log("Kopierer erfolgreich benutzt!");
|
||||
if (!_audioSource.isPlaying)
|
||||
_audioSource.Play();
|
||||
else
|
||||
_audioSource.PlayOneShot(_deny);
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8fdfe5a0863bed240835dda67c736375
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -12,9 +12,12 @@ Coffee Machine by ReyDros: https://freesound.org/people/ReyDros/sounds/327050/
|
|||
Open Bottle by michaelkoehler: https://freesound.org/people/michaelkoehler/sounds/207191/
|
||||
Eat Sound by TheDragonsSpark: https://freesound.org/people/TheDragonsSpark/sounds/543386/
|
||||
Drink Coffee by EverydayEldritch.com: https://freesound.org/people/EverydayEldritch.com/sounds/627922/
|
||||
Printer by Zabuhailo: https://freesound.org/people/Zabuhailo/sounds/145265/
|
||||
|
||||
hurt2.wav by thecheeseman: https://freesound.org/people/thecheeseman/sounds/44429/
|
||||
|
||||
https://assetstore.unity.com/packages/3d/environments/barrier-traffic-cone-pack-82549
|
||||
https://assetstore.unity.com/packages/3d/vehicles/ukraine-free-cars-191822
|
||||
https://assetstore.unity.com/packages/3d/vehicles/land/low-poly-playable-vehicles-154577
|
||||
https://assetstore.unity.com/packages/3d/vehicles/land/low-poly-playable-vehicles-154577
|
||||
|
||||
Music by suno.ai
|
Loading…
Reference in New Issue