Advertisemen
Unity3D Tutorial Mute Audio
Easter video series !
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL Mute Audio
1. Create New java and name it : MutestheAudioSource
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
// Mutes-Unmutes the sound of this transfor each time the user presses space.
function Update() {
if(Input.GetKeyDown(KeyCode.M)) {
if(audio.mute)
audio.mute = false;
else
audio.mute = true;
}
}
---------------------------------------------------------------------------------
Advertisemen
Tidak ada komentar:
Posting Komentar