// // Unity Methods // private void Start() { inputHandler = ComponentManager.Instance.Get <InputHandler>(); inspectorTool = ComponentManager.Instance.Get <InspectorTool>(); mapController = ComponentManager.Instance.Get <MapController>(); areaInspectorPanel = inspectorTool.areaInspectorPanel; areaInspector = areaInspectorPanel.areaInspector; }
// // 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>(); // Initialize line inspector lineInspectorPanel.Init(toolLayers, canvas, maxInspectionCount); lineInspector = lineInspectorPanel.lineInspector; lineInfos = lineInspectorPanel.lineInfos; // Initialize area inspector areaInspectorPanel.Init(toolLayers, maxInspectionCount); areaInspector = areaInspectorPanel.areaInspector; areaInfos = areaInspectorPanel.areaInfos; }