Update StartupController.cs

This commit is contained in:
Nahuel Rocchetti 2023-08-03 06:04:00 -03:00
parent b02e7dc81c
commit 898b343a93

View file

@ -71,7 +71,15 @@ namespace OpenTS2.Scenes
ContentLoading.LoadGameContentAsync(_loadProgress).ContinueWith((task) => { OnFinishLoading(); }, TaskScheduler.FromCurrentSynchronizationContext());
}
else
{
OnFinishLoading();
if (InitialLoadScreenBackgroundImage != null)
Destroy(InitialLoadScreenBackgroundImage.gameObject);
if (InitialLoadScreenLogoImage != null)
Destroy(InitialLoadScreenLogoImage.gameObject);
if (InitialLoadScreenReiaPlayer != null)
Destroy(InitialLoadScreenReiaPlayer.gameObject);
}
MusicController.PlayMusic(AudioManager.SplashAudio);
}