Commit 4546edd7 authored by radow's avatar radow
Browse files

Finished audio volume controll (should aply to all now)

parent 00b0abfa
......@@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 2256771506373132684}
- component: {fileID: 2256771506373132674}
- component: {fileID: 6678747646451353876}
- component: {fileID: 6473187186700880990}
m_Layer: 0
m_Name: GameManager
m_TagString: Untagged
......@@ -157,3 +158,15 @@ AudioSource:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &6473187186700880990
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2256771506373132685}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fdb9f3d4225f3f24fafd49733a3d48b4, type: 3}
m_Name:
m_EditorClassIdentifier:
......@@ -17,6 +17,12 @@ public class Cutscene_Throne : MonoBehaviour
public AudioSource step;
public AudioSource explosion;
private void Start()
{
step.volume *= SettingsData.effectsVolume;
explosion.volume *= SettingsData.effectsVolume;
}
public float nextin;
bool waiting;
bool fadeToBlack;
......
......@@ -11,6 +11,11 @@ public class Cutscene_start : MonoBehaviour
public Gate gate;
public AudioSource step;
private void Start()
{
step.volume += SettingsData.effectsVolume;
}
public TextMeshProUGUI subtitles;
public Image fadescreen;
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MusicVolumeController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
GetComponent<AudioSource>().volume *= SettingsData.musicVolume;
}
}
fileFormatVersion: 2
guid: fdb9f3d4225f3f24fafd49733a3d48b4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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