public void SaveTemplate()
    {
        var regionMapWindow = UIMainController.Instance.GetWindow <UIRegionMapWindow>(UIConstants.WINDOW_REGION_MAP);
        var toolsContainer  = regionMapWindow.ToolsPanel.GetToolsContainer <UISolarToolsContainer>();

        toolsContainer.AddTool(SolarItem.Copy(m_Target.Origin));
    }
예제 #2
0
    public override void OnBeginDrag(PointerEventData eventData)
    {
        var mouseCoordinates = MapCoordinateHelper.ConvertToCoordinates(m_Source.MinCoords,
                                                                        m_Source.MaxCoords,
                                                                        eventData.position);

        m_OriginTemplate.Coordinates = mouseCoordinates;
        targetObject          = m_Source.Create(SolarItem.Copy(m_OriginTemplate));
        targetObject.Dragable = true;
        base.OnBeginDrag(eventData);
    }