Пример #1
0
    public void Init()
    {
        ctrlManager  = new CtrlManager();
        modelManager = new ModelManager();

        rootCanv = GameObject.Find(HashID.CANVAS).GetComponent <Canvas>();
        GameObject.DontDestroyOnLoad(rootCanv.gameObject);
        this.RigisterViewType();
        ctrlManager.RigisterCtrls();
        modelManager.RigisterModels();
        ctrlManager.InitCtrls();
        MouseMonitor.OnEnter += ctrlManager.GetT <BagCtrl>(PanelID.BagPanel).GridUI_OnEnter;
        MouseMonitor.OnExit  += ctrlManager.GetT <BagCtrl>(PanelID.BagPanel).GridUI_OnExit;
        //  panelDict = new Dictionary<string, GameObject>();
    }