mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
refactor: let loadingscreen init itself OnEnable
This commit is contained in:
committed by
alexiscatnip
parent
993a6b2f08
commit
8e60d8f76e
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user