void Start() { button = GetComponent <Button>(); buttonText = button.GetComponentInChildren <Text>(); buttonText.text = text; buttonText.AddKeyboardShortcutText(shortcut); }
protected override void AddShortcuts() { resumeButtonText.AddKeyboardShortcutText(resumeKey); restartAtCheckpointButtonText.AddKeyboardShortcutText(restartAtCheckpointKey); optionsButtonText.AddKeyboardShortcutText(optionsKey); mainMenuButtonText.AddKeyboardShortcutText(mainMenuKey); }
protected override void AddShortcuts() { startButtonText.AddKeyboardShortcutText(startKey); optionsButtonText.AddKeyboardShortcutText(optionsKey); aboutButtonText.AddKeyboardShortcutText(aboutKey); quitButtonText.AddKeyboardShortcutText(quitKey); }
protected override void AddShortcuts() { restartButtonText.AddKeyboardShortcutText(restartKey); mainMenuButtonText.AddKeyboardShortcutText(mainMenuKey); }
protected override void AddShortcuts() { resumeButtonText.AddKeyboardShortcutText(resumeKey); }