public static void Open()
    {
        HunterEditorWindow window = GetWindow <HunterEditorWindow>("Hunter Editor");

        window.my    = (HunterDataBase)AssetDatabase.LoadAssetAtPath("Assets/DataBase/Data_Hunter.asset", typeof(HunterDataBase));
        window.items = (ItemDataBase)AssetDatabase.LoadAssetAtPath("Assets/DataBase/Data_Items.asset", typeof(ItemDataBase));
        window.SetStyle();
    }
Esempio n. 2
0
 public override void OnInspectorGUI()
 {
     //base.OnInspectorGUI();
     if (GUILayout.Button("Open Editor"))
     {
         HunterEditorWindow.Open((HunterDataBase)target);
     }
 }