public void MakeParent() { _containerNestedMenu.gameObject.SetActive(true); _addNestedCommand.onClick.AddListener(() => { _controller.AddCommand(_containerNestedCommands, this); }); }
public override void Open() { base.Open(); GameController.Instance().GameOverAction += _commandsController.ClearInput; _addCommand.onClick.AddListener(() => _commandsController.AddCommand()); _runCommands.onClick.AddListener(RunCommands); _clearAllCode.onClick.AddListener(_commandsController.ClearInput); _toMainMenu.onClick.AddListener(ReturnToMainMenu); _openHelper.onClick.AddListener(() => _containerHelper.gameObject.SetActive(!_containerHelper.gameObject.activeSelf)); }