refactor: let loadingscreen init itself OnEnable

This commit is contained in:
alexiscatnip
2022-08-06 02:43:06 +08:00
committed by alexiscatnip
parent 993a6b2f08
commit 8e60d8f76e
2 changed files with 1 additions and 2 deletions
@@ -60,7 +60,6 @@ namespace Raindrop.Bootstrap
if (references.ll == null)
Debug.LogError("loadingscreen not present");
references.ll.Init();
_uisrv = new UIService(
instance,
@@ -20,7 +20,7 @@ namespace Raindrop.UI.LoadingScreen
[SerializeField] public float delayBeforeFade = 2;
public void Init()
public void OnEnable()
{
loginMsg = new ReactiveProperty<string>(""); //"" is a magic value that is required to prevent showing the modal immediately on load.
loginMsg.AsObservable().Subscribe(