Init
This commit is contained in:
18
Assets/Scripts/HotUpdate/Main/SettingWindow/GeneralPanel.cs
Normal file
18
Assets/Scripts/HotUpdate/Main/SettingWindow/GeneralPanel.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class GeneralPanel : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TMP_InputField serverAddressInput;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
serverAddressInput.text = SettingsManager.Instance.CurrentSettings.serverAddress;
|
||||
}
|
||||
|
||||
public void OnServerAddressChanged(string value)
|
||||
{
|
||||
SettingsManager.Instance.CurrentSettings.serverAddress = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user