Remove legacy call helper.

This commit is contained in:
2023-11-23 13:46:00 +08:00
parent cbe94e6308
commit 155ce0bb22
3 changed files with 3 additions and 42 deletions

View File

@@ -1,5 +1,4 @@
using Cryville.Common;
using Cryville.Common.Unity;
using Cryville.Crtr.Ruleset;
using Cryville.Input;
using System;
@@ -44,7 +43,7 @@ namespace Cryville.Crtr.Config.UI {
else _targetPDim = null;
_targetNotNull = def.notnull;
m_inputDialog.SetActive(true);
CallHelper.Purge(m_deviceList);
foreach (Transform i in m_deviceList) Destroy(i.gameObject);
_consumer.EnumerateEvents(ev => { });
_recvsrcs.Clear();
_applicableEntries = 1;
@@ -85,12 +84,12 @@ namespace Cryville.Crtr.Config.UI {
}
public void OnConfigEnable() {
CallHelper.Purge(m_entryList);
foreach (Transform i in m_entryList) Destroy(i.gameObject);
_entries.Clear();
_consumer = new SimpleInputConsumer(Game.InputManager);
_consumer.Activate();
foreach (var i in m_configScene.ruleset.Root.inputs) {
var e = GameObject.Instantiate(m_prefabInputConfigEntry, m_entryList.transform).GetComponent<InputConfigPanelEntry>();
var e = Instantiate(m_prefabInputConfigEntry, m_entryList.transform).GetComponent<InputConfigPanelEntry>();
_entries.Add(i.Key, e);
e.SetKey(this, i.Key);
OnProxyChanged(this, proxy[i.Key]);