protected override void RegisterTypes(IContainerRegistry containerRegistry) { ViewConfig.Init(containerRegistry); ServiceConfig.Init(containerRegistry); containerRegistry.RegisterForNavigation <CowListPage>(); containerRegistry.RegisterForNavigation <ParameterPage>(); }
/// <summary> /// 初始化Canvas /// </summary> private void Awake() { ViewConfig.Init(); var canvas = GameObjectManager.Instance.SyncSpawn(CANVASPATH); canvas.transform.SetParent(transform, false); mCanvas = canvas.GetComponent <RectTransform>(); UICamera = mCanvas.transform.Find("UICamera").GetComponent <Camera>(); }