Skip to content
Snippets Groups Projects
Commit dbcb534b authored by Gard Aleksander Furre's avatar Gard Aleksander Furre
Browse files

bakgrunds musikk

parent 68fe60a4
No related branches found
No related tags found
2 merge requests!63Main,!61Gardaf
......@@ -18,7 +18,7 @@ namespace BigSock {
public float AttackSpeed => Stats.AttackSpeed;
public float baseAttackSpeed = 1;
public AudioSource[] source;
private AudioSource[] source;
public AudioClip TakeDamageAudio;
/*
......@@ -130,7 +130,8 @@ namespace BigSock {
ProjectileSpeed = 1,
Accuracy = 1,
};
source = Camera.main.gameObject.GetComponents<AudioSource>();
source = Camera.main.gameObject.GetComponents<AudioSource>();
UpdateModifiers();
......@@ -212,7 +213,6 @@ namespace BigSock {
OnTakeDamage?.Invoke(this, attack.Actor, attack);
if (TakeDamageAudio != null){
source[0] = GetComponent<AudioSource>();
source[0].clip = TakeDamageAudio;
source[0].Play();
}
......
......@@ -171,8 +171,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
baseAttackSpeed: 1
source:
- {fileID: 0}
TakeDamageAudio: {fileID: 8300000, guid: 0d78a0205a770454c86c53710a0b4ff1, type: 3}
baseMovementSpeed: 1
baseDamage: 1
......
......@@ -144,8 +144,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
baseAttackSpeed: 1
source:
- {fileID: 0}
TakeDamageAudio: {fileID: 8300000, guid: 0d78a0205a770454c86c53710a0b4ff1, type: 3}
baseMovementSpeed: 4
baseDamage: 1
......
File added
fileFormatVersion: 2
guid: ae3f4e0c57ec5dc4db5c797621c02302
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:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment