setting change
This commit is contained in:
@@ -30,17 +30,18 @@ namespace NBF
|
||||
{
|
||||
// InputWaitingPanel.Show(true);
|
||||
// UI.Inst.OpenUI<InputWaitingPanel>();
|
||||
// 取消当前绑定
|
||||
var settingPanel = UI.Inst.GetUI<SettingPanel>();
|
||||
settingPanel.InputWait.visible = true;
|
||||
Option.InputAction.Disable();
|
||||
|
||||
// 开始重绑定操作
|
||||
rebindingOperation = Option.InputAction.PerformInteractiveRebinding(Option.BindingIndex)
|
||||
.OnMatchWaitForAnother(0.1f)
|
||||
.OnComplete(operation => RebindComplete())
|
||||
.OnCancel(operation => RebindCanceled())
|
||||
.Start();
|
||||
SettingWaitInputPanel.Show();
|
||||
// // 取消当前绑定
|
||||
// var settingPanel = UI.Inst.GetUI<SettingPanel>();
|
||||
// settingPanel.InputWait.visible = true;
|
||||
// Option.InputAction.Disable();
|
||||
//
|
||||
// // 开始重绑定操作
|
||||
// rebindingOperation = Option.InputAction.PerformInteractiveRebinding(Option.BindingIndex)
|
||||
// .OnMatchWaitForAnother(0.1f)
|
||||
// .OnComplete(operation => RebindComplete())
|
||||
// .OnCancel(operation => RebindCanceled())
|
||||
// .Start();
|
||||
}
|
||||
|
||||
private void RebindComplete()
|
||||
@@ -48,12 +49,6 @@ namespace NBF
|
||||
rebindingOperation.Dispose();
|
||||
UpdateValueText();
|
||||
Option.InputAction.Enable();
|
||||
|
||||
var settingPanel = UI.Inst.GetUI<SettingPanel>();
|
||||
settingPanel.InputWait.visible = false;
|
||||
// UI.Inst.HideUI<InputWaitingPanel>();
|
||||
// startRebindObject.SetActive(true);
|
||||
// waitingForInputObject.SetActive(false);
|
||||
}
|
||||
|
||||
private void RebindCanceled()
|
||||
|
||||
Reference in New Issue
Block a user