public static bool OnOpenAsset(int instanceID, int line)
 {
     //check if object is of type to be opened in custom editor
     if (Selection.activeObject as ActivityCard != null) //open character editor
     {
         ActivityCardEditor.Init(Selection.activeObject as ActivityCard);
         return(true); //catch open file
     }
     //no matches for custom editors, let unity open file as normal
     return(false);
 }
 public static bool OpenActivityCardEditor()
 {
     ActivityCardEditor.Init(Selection.activeObject as ActivityCard);
     return(true);
 }