public void OnSceneGUI()
    {
        OffMeshConnector offMesh = target as OffMeshConnector;

        if (offMesh != null)
        {
            offMesh.EndPosition = Handles.PositionHandle(offMesh.EndPosition, Quaternion.identity);
        }
    }
    public override void OnInspectorGUI()
    {
        OffMeshConnector offMesh = target as OffMeshConnector;

        if (offMesh != null)
        {
            offMesh.EndPosition   = EditorGUILayout.Vector3Field("End Position", offMesh.EndPosition);
            offMesh.Radius        = EditorGUILayout.FloatField("Radius", offMesh.Radius);
            offMesh.Bidirectional = EditorGUILayout.Toggle("Bidirectional", offMesh.Bidirectional);
        }
    }