FairyGUI.GButton.__click C# (CSharp) Method

__click() private method

private __click ( ) : void
return void
        private void __click()
        {
            if (sound != null)
                Stage.inst.PlayOneShotSound(sound, soundVolumeScale);

            if (!changeStateOnClick)
                return;

            if (_mode == ButtonMode.Check)
            {
                this.selected = !_selected;
                onChanged.Call();
            }
            else if (_mode == ButtonMode.Radio)
            {
                if (!_selected)
                {
                    this.selected = true;
                    onChanged.Call();
                }
            }
        }