Commit 1ab2577f authored by radow's avatar radow
Browse files

hopefulyl finally fixed the sound issue

parent e5b5711b
......@@ -558,6 +558,7 @@ MonoBehaviour:
toggleMessage: {fileID: 2500070006987253780}
winMessage: {fileID: 2500070007356703663}
cleared: 0
levelID: 0
--- !u!1 &2500070006462058490
GameObject:
m_ObjectHideFlags: 0
......@@ -1805,6 +1806,10 @@ PrefabInstance:
propertyPath: m_Name
value: Btn Start (1)
objectReference: {fileID: 0}
- target: {fileID: 6938692296354302619, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
propertyPath: auds
value:
objectReference: {fileID: 2668845099797519572}
- target: {fileID: 6938692296354302622, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
propertyPath: m_LocalPosition.x
value: 0
......@@ -1908,6 +1913,11 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 6938692296354302622, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
m_PrefabInstance: {fileID: 4990704835386480204}
m_PrefabAsset: {fileID: 0}
--- !u!82 &2668845099797519572 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6938692296354302616, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
m_PrefabInstance: {fileID: 4990704835386480204}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7680833332791130312
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -1923,6 +1933,10 @@ PrefabInstance:
propertyPath: m_Name
value: Btn Start
objectReference: {fileID: 0}
- target: {fileID: 6938692296354302619, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
propertyPath: auds
value:
objectReference: {fileID: 782749860415582800}
- target: {fileID: 6938692296354302622, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
propertyPath: m_LocalPosition.x
value: 0
......@@ -2026,3 +2040,8 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 6938692296354302622, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
m_PrefabInstance: {fileID: 7680833332791130312}
m_PrefabAsset: {fileID: 0}
--- !u!82 &782749860415582800 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6938692296354302616, guid: fa28768bb3f72d740a6e134561d997fb, type: 3}
m_PrefabInstance: {fileID: 7680833332791130312}
m_PrefabAsset: {fileID: 0}
......@@ -6,9 +6,12 @@ public class Buttonfeedback : MonoBehaviour
{
Vector3 scale;
public float factor = 1.3f;
public AudioSource auds;
private void Start()
{
scale = transform.localScale;
if (auds != null) auds.volume = SettingsData.effectsVolume;
}
public void HoverStart()
......
......@@ -14,6 +14,7 @@ public class Settings : MonoBehaviour
public AudioSource[] effectSources;
float[] originalEffectVol;
private void Start()
{
originalmusicVol = musicSource.volume;
......@@ -22,6 +23,10 @@ public class Settings : MonoBehaviour
{
originalEffectVol[i] = effectSources[i].volume;
}
music.value = SettingsData.musicVolume;
effects.value = SettingsData.effectsVolume;
ChangedEffectsVolume();
ChangedEffectsVolume();
}
public void ChangedMusicVolume()
......
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