fixed controls, texts and added image, v1.4.1
This commit is contained in:
@@ -8,6 +8,7 @@ using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using UnityEngine.Localization.Settings;
|
||||
|
||||
namespace Assets.Scripts
|
||||
{
|
||||
@@ -54,8 +55,9 @@ namespace Assets.Scripts
|
||||
sw = File.CreateText(settingsPath);
|
||||
sw.WriteLine("Music:0.5");
|
||||
sw.WriteLine("Effects:0.5");
|
||||
sw.WriteLine("Resolution:0");
|
||||
sw.WriteLine("Resolution:1");
|
||||
sw.WriteLine("Mode:0");
|
||||
sw.WriteLine("Language:en");
|
||||
sw.WriteLine("SensitivityMouse:1");
|
||||
sw.WriteLine("SensitivityController:1");
|
||||
sw.Flush();
|
||||
@@ -96,6 +98,9 @@ namespace Assets.Scripts
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "Language":
|
||||
LocalizationSettings.SelectedLocale = LocalizationSettings.AvailableLocales.GetLocale(line.Split(":")[1]);
|
||||
break;
|
||||
case "SensitivityMouse":
|
||||
if(isIngame){
|
||||
GameObject.Find("Main Camera").GetComponent<PlayerCamera>().mouseSpeed = float.Parse(line.Split(':')[1]);
|
||||
@@ -126,6 +131,9 @@ namespace Assets.Scripts
|
||||
case "Mode":
|
||||
GameObject.Find("dropMode").GetComponent<Dropdown>().value = int.Parse(line.Split(':')[1]);
|
||||
break;
|
||||
case "Language":
|
||||
GameObject.Find("dropLanguage").GetComponent<Dropdown>().value = line.Split(':')[1].Equals("en") ? 1 : 0;
|
||||
break;
|
||||
case "SensitivityMouse":
|
||||
GameObject.Find("slideSensitivityMouse").GetComponent<Slider>().value = float.Parse(line.Split(':')[1]);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user