public override void execute() { txUIObject window = mReceiver as txUIObject; window.activeFirstComponent <WindowComponentAudio>(); WindowComponentAudio audioComponent = window.getFirstActiveComponent <WindowComponentAudio>(); if (audioComponent != null) { string soundName = mSound != SOUND_DEFINE.SD_MAX ? mAudioManager.getAudioName(mSound) : mSoundFileName; if (mUseVolumeCoe) { mVolume *= mAudioManager.getVolumeScale(mSound); } audioComponent.play(soundName, mLoop, mVolume); } }