Example #1
0
    private void Awake()
    {
        updateText = gameObject.GetComponentInChildren <Text>();
        button     = gameObject.GetComponent <Button>();

        button.onClick.AddListener(
            () =>
        {
            SettingsMenu.DisplayCategory(gameObject.name);
        });
    }