设置扩展
This commit is contained in:
@@ -7,9 +7,9 @@ namespace Ichni.UI
|
||||
public bool value;
|
||||
public SwitchManager switchManager;
|
||||
|
||||
public void SetUp(bool initialValue, string title = "")
|
||||
public void SetUp(bool initialValue, string title = "", bool preservePrefabTitle = false)
|
||||
{
|
||||
base.SetUp(title);
|
||||
base.SetUp(title, preservePrefabTitle: preservePrefabTitle);
|
||||
|
||||
switchManager.onValueChanged.AddListener(isOn =>
|
||||
{
|
||||
@@ -34,4 +34,4 @@ namespace Ichni.UI
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user