36 lines
748 B
C#
36 lines
748 B
C#
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
|
|
|
using System.Globalization;
|
|
using UnityEngine;
|
|
using FairyGUI;
|
|
using NBC;
|
|
using NBF.Setting;
|
|
|
|
namespace NBF
|
|
{
|
|
public partial class SettingInputItem : GButton
|
|
{
|
|
public OptionBase Option;
|
|
|
|
private void OnInited()
|
|
{
|
|
}
|
|
|
|
public void SetData(OptionBase option)
|
|
{
|
|
Option = option;
|
|
TextName.SetLanguage(Option.Name);
|
|
SetShow();
|
|
}
|
|
|
|
private void SetShow()
|
|
{
|
|
UpdateValueText();
|
|
}
|
|
|
|
private void UpdateValueText()
|
|
{
|
|
BtnKeyboard.SetData(Option as InputOption);
|
|
}
|
|
}
|
|
} |