コード例 #1
0
ファイル: CNFieldView.cs プロジェクト: kingBook/unity_demos
        //-----------------------------------------------------------------------------------
        public CNFieldView(CNFieldController controller, CommandNodeEditor ownerEditor)
        {
            Controller        = controller;
            selectionListBox_ = new CarListBox(Controller, "FieldLB", false);
            ownerNode_        = ownerEditor.Data;

            Controller.WantsUpdate += controller.BuildListItems;
        }
コード例 #2
0
        //-----------------------------------------------------------------------------------
        public CNFieldExtendedView(CNFieldController controller, CommandNodeEditor ownerEditor) :
            base(controller, ownerEditor)
        {
            nodesController_ = new CNNodesController(controller, ownerEditor);
            nodesListBox_    = new CarListBox(nodesController_, "FieldnodesLB", true);
            field_           = controller.Field;

            controller.WantsUpdate += nodesController_.SetSelectableNodes;
        }