void OnSelectionChange()
{
MBObject obj = (Selection.activeGameObject) ? Selection.activeGameObject.GetComponent<MBObject>() : null;
if (SelectedObject is MBParameter)
Select(Selection.activeGameObject);
else if (obj is MBObject)
Select(obj);
}