public void RefreshList()
    {
#if UNITY_EDITOR
        list.Clear();
        C[] array = ScriptableObjectEditorMethods.GetAllInstancesOfScriptableObjectType <C>();
        foreach (C x in array)
        {
            list.Add(x);
        }
#endif
    }
Esempio n. 2
0
    private static bool CheckIfOnlyInstance()
    {
        if (ScriptableObjectEditorMethods.GetNumberOfInstancesOfScriptableObjectType <T>() == 1)
        {
            return(true);
        }

        else
        {
            return(false);
        }
    }
Esempio n. 3
0
 static OnLoadEditorMethods()
 {
     ScriptableObjectEditorMethods.RefreshAllMasterLists();
 }