Exemplo n.º 1
0
        // ------------------------------------------------------------------------
        public void resetCurPlacementTool()
        {
            if (_curPlacementTool != null)
            {
                _curPlacementTool.reset();
                _curPlacementTool = null;
            }

            PweMainMenu.Instance.setPlacementToolButtons(PlacementTool.PlacementMode.None);
            PwePlacementTools.Instance.showToolPanels(PlacementTool.PlacementMode.None);
        }
Exemplo n.º 2
0
        // ------------------------------------------------------------------------
        public void setPlacementTool(PlacementTool.PlacementMode mode, PrefabLevelEditor.Part part)
        {
            if (mode == PlacementTool.PlacementMode.Circle)
            {
                _curPlacementTool = _aPlacementTools [0];
            }
            else if (mode == PlacementTool.PlacementMode.Quad)
            {
                _curPlacementTool = _aPlacementTools [1];
            }
            else if (mode == PlacementTool.PlacementMode.Mount)
            {
                _curPlacementTool = _aPlacementTools [2];
            }
            else
            {
                _curPlacementTool = _aPlacementTools [3];
            }

            PwePlacementTools.Instance.reset();
            PwePlacementTools.Instance.showToolPanels(mode);
        }