Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        Lines lines = (Lines)target as Lines;

        GUILayout.BeginHorizontal();

        if (GUILayout.Button("Add Point"))
        {
            lines.AddPointAtEnd();
        }

        if (GUILayout.Button("Recalculate All Lines"))
        {
            lines.BuildNewRegistration(true);
        }

        GUILayout.EndHorizontal();

        base.DrawDefaultInspector();
    }