|
|
@@ -33,15 +33,15 @@ public class SetUpView : MonoBehaviour
|
|
|
public void SelectCrossHairOption(bool on)
|
|
|
{
|
|
|
AudioMgr.ins.PlayBtn();
|
|
|
- LoginMgr.myUserInfo.openCrossHair = on;
|
|
|
- LoginMgr.myUserInfo.Save();
|
|
|
+ UserSettings.ins.openCrossHair = on;
|
|
|
+ UserSettings.ins.Save();
|
|
|
RenderSelectCrossHairOption();
|
|
|
}
|
|
|
|
|
|
void RenderSelectCrossHairOption()
|
|
|
{
|
|
|
- crossHairOptionChecks[0].enabled = LoginMgr.myUserInfo.openCrossHair;
|
|
|
- crossHairOptionChecks[1].enabled = !LoginMgr.myUserInfo.openCrossHair;
|
|
|
+ crossHairOptionChecks[0].enabled = UserSettings.ins.openCrossHair;
|
|
|
+ crossHairOptionChecks[1].enabled = !UserSettings.ins.openCrossHair;
|
|
|
}
|
|
|
|
|
|
public void ChangeLanguage()
|
|
|
@@ -59,20 +59,20 @@ public class SetUpView : MonoBehaviour
|
|
|
public void ChangeShootLevel()
|
|
|
{
|
|
|
AudioMgr.ins.PlayBtn();
|
|
|
- int currentShootLevel = LoginMgr.myUserInfo.shootLevel;
|
|
|
+ int currentShootLevel = UserSettings.ins.shootLevel;
|
|
|
if (currentShootLevel < 2) {
|
|
|
currentShootLevel++;
|
|
|
} else {
|
|
|
currentShootLevel = 0;
|
|
|
}
|
|
|
- LoginMgr.myUserInfo.shootLevel = currentShootLevel;
|
|
|
- LoginMgr.myUserInfo.Save();
|
|
|
+ UserSettings.ins.shootLevel = currentShootLevel;
|
|
|
+ UserSettings.ins.Save();
|
|
|
RenderShootLevel();
|
|
|
}
|
|
|
|
|
|
void RenderShootLevel()
|
|
|
{
|
|
|
- int currentShootLevel = LoginMgr.myUserInfo.shootLevel;
|
|
|
+ int currentShootLevel = UserSettings.ins.shootLevel;
|
|
|
int[] textID = {310, 311, 312};
|
|
|
this.transform.Find("Items/ShootLevel/Value").GetComponent<TextAutoLanguage>().SetText(textID[currentShootLevel]);
|
|
|
}
|
|
|
@@ -80,7 +80,7 @@ public class SetUpView : MonoBehaviour
|
|
|
public void ChangeActualArrowWeight() {
|
|
|
AudioMgr.ins.PlayBtn();
|
|
|
float[] itemValues = {20f, 27f, 30.5f};
|
|
|
- float actualArrowWeight = LoginMgr.myUserInfo.actualArrowWeight;
|
|
|
+ float actualArrowWeight = UserSettings.ins.actualArrowWeight;
|
|
|
if (actualArrowWeight == itemValues[itemValues.Length - 1]) {
|
|
|
actualArrowWeight = itemValues[0];
|
|
|
} else {
|
|
|
@@ -91,15 +91,15 @@ public class SetUpView : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- LoginMgr.myUserInfo.actualArrowWeight = actualArrowWeight;
|
|
|
- LoginMgr.myUserInfo.Save();
|
|
|
+ UserSettings.ins.actualArrowWeight = actualArrowWeight;
|
|
|
+ UserSettings.ins.Save();
|
|
|
RenderActualArrowWeight();
|
|
|
}
|
|
|
|
|
|
void RenderActualArrowWeight()
|
|
|
{
|
|
|
TextAutoLanguage textAutoLanguage = this.transform.Find("Items/ActualArrowHeight/Value").GetComponent<TextAutoLanguage>();
|
|
|
- textAutoLanguage.textFormatArgs = new string[]{LoginMgr.myUserInfo.actualArrowWeight.ToString()};
|
|
|
+ textAutoLanguage.textFormatArgs = new string[]{UserSettings.ins.actualArrowWeight.ToString()};
|
|
|
textAutoLanguage.SetText(314);
|
|
|
}
|
|
|
|