设置相关功能脚本呢
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using NBC;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF.Setting
|
||||
{
|
||||
public enum SettingLanguage
|
||||
{
|
||||
English = 10,
|
||||
French = 14,
|
||||
Japanese = 22,
|
||||
Korean = 23,
|
||||
Russian = 30,
|
||||
ChineseSimplified = 40,
|
||||
ChineseTraditional = 41,
|
||||
}
|
||||
|
||||
[Sort(100)]
|
||||
public class LanguageSetting : MultiOption<SettingLanguage>
|
||||
{
|
||||
private SettingLanguage _defaultLanguage;
|
||||
public override string Name => "Language";
|
||||
public override string Group => SettingsDef.Group.SoundAndLanguage;
|
||||
protected override SettingLanguage DefaultValue => _defaultLanguage;
|
||||
|
||||
protected override void OnInitialize()
|
||||
{
|
||||
_defaultLanguage = (SettingLanguage)Application.systemLanguage;
|
||||
}
|
||||
|
||||
protected override void OnApply()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnReset()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6eb19d962e5644ada69dca074c6e720a
|
||||
timeCreated: 1748592356
|
||||
Reference in New Issue
Block a user