forked from zxl/LaboratoryProtection
22 lines
517 B
C#
22 lines
517 B
C#
using Cysharp.Threading.Tasks;
|
|
|
|
using PMaker.DependencyInjection;
|
|
using PMaker.UI;
|
|
|
|
namespace Invoker.UI
|
|
{
|
|
public class UITester : BaseBehaviour
|
|
{
|
|
|
|
public string pageName;
|
|
|
|
private async void Start()
|
|
{
|
|
var token = this.GetCancellationTokenOnDestroy();
|
|
var instance = default(UIPresenter);
|
|
await UniTask.WaitUntil(() => IoC.TryGetSingleton(out instance) == true, cancellationToken: token);
|
|
|
|
instance[pageName].Show();
|
|
}
|
|
}
|
|
} |