예제 #1
0
    static IEnumerator C_OnSelectionChanged(string guid)
    {
        yield return(EditorCoroutineUtility.StartCoroutineOwnerless(isTracked.Request()));

        if (!isTracked.succeed)
        {
            yield return(EditorCoroutineUtility.StartCoroutineOwnerless(add.Request()));
        }

        yield return(EditorCoroutineUtility.StartCoroutineOwnerless(getInfo.Request()));

        Asset info = lockedInfo[guid];

        if (info.locked && info.holder != AssetLockerOptions.ID)
        {
            if (EditorUtility.DisplayDialog($"Locked", $"Is locked by {lockedInfo[guid].holder}", "OK"))
            {
                Selection.activeObject = null;
            }
        }
    }