示例#1
0
    public void Initialize(IQuickBarView quickBarView, ISceneCatalogController sceneCatalogController)
    {
        this.quickBarView           = quickBarView;
        this.sceneCatalogController = sceneCatalogController;

        quickBarView.OnQuickBarObjectSelected += OnQuickBarObjectSelected;
        quickBarView.OnSetIndexToDrop         += SetIndexToDrop;
        quickBarView.OnSceneObjectDropped     += SceneObjectDropped;
        quickBarView.OnQuickBarInputTriggered += QuickBarInput;
    }
    public void Initialize(IQuickBarView quickBarView, ISceneCatalogController sceneCatalogController)
    {
        this.quickBarView           = quickBarView;
        this.sceneCatalogController = sceneCatalogController;

        quickBarView.OnQuickBarObjectSelected         += OnQuickBarObjectSelected;
        quickBarView.OnSetIndexToDrop                 += SetIndexToDrop;
        quickBarView.OnSceneObjectDroppedFromQuickBar += SceneObjectDroppedFromQuickBar;
        quickBarView.OnSceneObjectDroppedFromCatalog  += SceneObjectDroppedFromCatalog;
        quickBarView.OnQuickBarInputTriggered         += QuickBarInput;
        sceneCatalogController.OnStopInput            += CancelDragging;
    }