Exemplo n.º 1
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     ViewConfig.Init(containerRegistry);
     ServiceConfig.Init(containerRegistry);
     containerRegistry.RegisterForNavigation <CowListPage>();
     containerRegistry.RegisterForNavigation <ParameterPage>();
 }
Exemplo n.º 2
0
    /// <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>();
    }