void OnEnable() { placer = (FootprintPlacer)target; placer.graph = placer.GetComponent<Graph>(); if (placer.graph == null) placer.graph = placer.GetComponentInParent<Graph>(); controls = new UtilityTools.EditorControls(placer.gameObject); }
void OnEnable() { placer = (FootprintPlacer)target; placer.graph = placer.GetComponent <Graph>(); if (placer.graph == null) { placer.graph = placer.GetComponentInParent <Graph>(); } controls = new UtilityTools.EditorControls(placer.gameObject); }