override protected Action Command() { return(delegate { if (mutedState) { if (prompt != null) { prompt.ChangePrompt("Mute"); } UnMute(); } else { if (prompt != null) { prompt.ChangePrompt("Unmute"); } Mute(); } }); }
override protected Action Command() { return(delegate { if (mutedState) { if (prompt != null) { prompt.ChangePrompt("Mute"); } UnMute(); GetComponent <ButtonAppearance>().ResetButton(); } else { if (prompt != null) { prompt.ChangePrompt("Unmute"); } Mute(); GetComponent <ButtonAppearance>().SetButtonActive(); } }); }