コード例 #1
0
    public ActionLibraryExplorer()
    {
        hideFlags = HideFlags.DontSave;

        if (_instance != null)
        {
            Debug.LogError("Instance already exists");
            DestroyImmediate(this);
            return;
        }

        _instance = this;

        titleContent = new GUIContent("Library Explorer");
    }
コード例 #2
0
 public void OnDestroy()
 {
     _instance = null;
 }