private void Update() { if (menu.infos.Any(info => info.IsAsking())) { return; } if (!Input.GetKeyUp(renameKey) || nameInput.IsAsking()) { return; } asking = true; menu.todo.Hide(); menu.boards.Hide(); renameCam.SetActive(true); nameInput.Ask(dude.GetName()); nameInput.onDone += OnNameInputDone; nameInput.onUpdate += OnNameInputChange; }