private void ShowActionBubble(AbstractShortcuts shortcuts, KeyAction keyAction, string key) { // TODO connect bubble to its parent so it moves with it GameObject shortcutBubble = ResourcesLoader.Instance.GetRecycledObject("ShortcutBubble"); shortcutBubble.transform.position = shortcuts.GetPosition(); shortcutBubble.transform.GetChild(0).GetComponent <Text>().text = key + " - " + keyAction.text; Button btn = shortcutBubble.GetComponent <Button>(); btn.onClick.RemoveAllListeners(); btn.onClick.AddListener(delegate { keyAction.action(); ExitMood(); }); bubbles.Add(shortcutBubble); }