Browse Source

Hide buttons while transitioning between rooms.

master
chrisgregan 11 years ago
parent
commit
965075f535
  1. 6
      Assets/Fungus/Scripts/Game.cs

6
Assets/Fungus/Scripts/Game.cs

@ -148,6 +148,8 @@ namespace Fungus
return;
}
waiting = true;
// Fade out screen
cameraController.Fade(0f, roomFadeDuration / 2f, delegate {
@ -158,7 +160,9 @@ namespace Fungus
activeRoom.gameObject.SendMessage("Enter");
// Fade in screen
cameraController.Fade(1f, roomFadeDuration / 2f, null);
cameraController.Fade(1f, roomFadeDuration / 2f, delegate {
waiting = false;
});
});
}

Loading…
Cancel
Save