Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Echo on November 25, 2012, 11:18:35 PM

Title: Checkbox Mute
Post by: Echo on November 25, 2012, 11:18:35 PM
Hey I'm using a checkbox to mute my game, but when I use OnActivation + Debug.Log it doesn't seem to be working. Should I use a different function? Also If I get it working what's the most efficient way to mute the game? It seems weird to reference all objects with an audio source one by one and turn their volumes down.
Title: Re: Checkbox Mute
Post by: ArenMook on November 26, 2012, 12:20:55 AM
It's "OnActivate" by default: http://www.tasharen.com/ngui/docs/class_u_i_checkbox.html#a05dbf1df1735738e8448cec8bb5c0612
Title: Re: Checkbox Mute
Post by: Echo on November 29, 2012, 07:28:42 PM
It's "OnActivate" by default: http://www.tasharen.com/ngui/docs/class_u_i_checkbox.html#a05dbf1df1735738e8448cec8bb5c0612
Don't know why I said OnActivation, already using OnActivate currently.

EDIT: Nvm, I'm ashamed of my self. I forgot to put the script on the GameObject. Sorry.