Beispiel #1
0
    //
    // Public Methods
    //

    public void Init(ToolLayerController toolLayers, int maxInspectionCount)
    {
        // Initializations
        inspectorTool           = ComponentManager.Instance.Get <InspectorTool>();
        this.maxInspectionCount = maxInspectionCount;

        areaInspector.Init(toolLayers, inspectionDelPrefab);
        InitAreaInspectorInfo();
    }
Beispiel #2
0
    //
    // Event Methods
    //

    protected override void OnComponentRegistrationFinished()
    {
        base.OnComponentRegistrationFinished();

        // Get Components
        dataLayers          = ComponentManager.Instance.Get <DataLayers>();
        gridLayerController = map.GetLayerController <GridLayerController>();
        inputHandler        = ComponentManager.Instance.Get <InputHandler>();
        outputPanel         = ComponentManager.Instance.Get <OutputPanel>();
        mapViewArea         = ComponentManager.Instance.Get <MapViewArea>();
        canvas    = GameObject.FindWithTag("Canvas").GetComponent <Canvas>();
        infoPanel = FindObjectOfType <InfoPanel>();


        lineInspectorPanel.Init(toolLayers, canvas, maxInspectionCount);
        lineInspector = lineInspectorPanel.lineInspector;
        lineInfos     = lineInspectorPanel.lineInfos;

        areaInspector.Init(toolLayers);
        InitAreaInspectorInfo();
    }