private void Close(KeyCode keyCode) { panel.SetActive(false); if (isBind1) { element.SetBind1(keyCode); } else { element.SetBind2(keyCode); } }
public void CheckEscapeMenuBind() { if (escapeMenuElement && escapeMenuElement.HasNoBind()) { escapeMenuElement.SetBind1(KeyCode.Escape); } }