mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
work in progress
This commit is contained in:
1 parent
f6f28efd88
commit
8550a354f1
2 files changed
+14
-3
No files matched your search
@@ -23,14 +23,14 @@ public class MyCornerComboBox : MonoBehaviour
|
||||
go.SetActive(false);
|
||||
|
||||
var cbctrl = go.transform.GetComponent<UIComboBox>();
|
||||
cbctrl.onSubmit.RemoveAllListeners();
|
||||
cbctrl.onItemIndexChange.RemoveAllListeners();
|
||||
foreach (var button in cbctrl.ItemButtons)
|
||||
{
|
||||
Destroy(button.gameObject);
|
||||
}
|
||||
cbctrl.Items.Clear();
|
||||
cbctrl.ItemButtons.Clear();
|
||||
cbctrl.onSubmit.RemoveAllListeners();
|
||||
cbctrl.onItemIndexChange.RemoveAllListeners();
|
||||
_baseObject = go;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user