Reworked menu and achievements
This commit is contained in:
@@ -67,9 +67,11 @@ namespace Assets.Scripts
|
||||
foreach(string line in lines){
|
||||
switch(line.Split(":")[0]){
|
||||
case "Music":
|
||||
if (!isIngame) break;
|
||||
GameObject.Find("Main Camera").GetComponent<AudioSource>().volume = float.Parse(line.Split(':')[1]);
|
||||
break;
|
||||
case "Effects":
|
||||
if (!isIngame) break;
|
||||
GameObject.Find("Player").GetComponent<AudioSource>().volume = float.Parse(line.Split(':')[1]);
|
||||
break;
|
||||
case "Resolution":
|
||||
|
||||
Reference in New Issue
Block a user