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