Hi All!
Here is my code that changes pause button to play, when clicked while playing.
But I could not change it back to pause, after paused…
Any suggestions?
function OnGUI () {
if(GUI.Button(Rect(452,453,58,58),"",bt2)){
if (guiTexture.texture.isPlaying) {
guiTexture.texture.Pause();
//change pause button 2 play button
bt2 = bt1;
}
else {
guiTexture.texture.Play();
//change play button 2 pause button
// I put here "bt1 = bt2;" but doesnt work...
}
}