Пример #1
0
 override protected Action Command()
 {
     return(delegate
     {
         if (mutedState)
         {
             if (prompt != null)
             {
                 prompt.ChangePrompt("Mute");
             }
             UnMute();
         }
         else
         {
             if (prompt != null)
             {
                 prompt.ChangePrompt("Unmute");
             }
             Mute();
         }
     });
 }
Пример #2
0
 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();
         }
     });
 }