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);
    }
Example #2
0
    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);
    }