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);
    }
示例#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);
    }