public static bool AutoOpenUnits(int instanceId, int line) { if (AssetDatabase.Contains(instanceId)) { string path = AssetDatabase.GetAssetPath(instanceId); if (AssetDatabase.LoadAssetAtPath <UnitBase>(path) != null) { UnitEditorWindows.Init(); Support.UnitSupport.UnitEditor.Load(path); return(true); } } return(false); }
static void UnitEditor() { UnitEditorWindows.Init(); }