private static void MuteScene() { var pyUni = new pyUniplug(); pyUniplug.print("### Uniplug ###"); var context = pyUni.context(); var scene = context.scene(); var volume = scene.audio_volume(); var objects = scene.objects(); var cube = objects["Cube"]; var loc = cube.location(); pyUniplug.print("Location of the Cube: " + loc); if (volume > 0) { pyUniplug.print("Volume is above 0. Muting."); LastVolume = volume; scene.audio_volume(0); } else { pyUniplug.print("Volume is 0. Setting volume back to " + LastVolume); scene.audio_volume(LastVolume); } }