Exemple #1
0
    protected override void setReferences()
    {
        base.setReferences();
        UISFXHandler sfxScript = GetComponent <UISFXHandler>();

        sfxScript.DisableSounds();
        GetComponent <Button>().transition = Selectable.Transition.None;
    }
Exemple #2
0
    protected override void setReferences()
    {
        base.setReferences();
        uiButton = gameObject.AddComponent <UIButton>();
        uiButton.SubscribeToClick(ExecuteClick);
        UISFXHandler sfxScript = GetComponent <UISFXHandler>();

        sfxScript.DisableSounds();
        nameText = GetComponentInChildren <Text>();
    }