示例#1
0
    private static void RecoveryObjectReference(string assetName)
    {
        ObjectReference or = null;

        if (!_objectReferenceList.TryGetValue(assetName, out or))
        {
            return;
        }

        DestroyObject(or);

        _objectReferenceList.Remove(assetName);
        or.Clear();
        _freeObjectReferenceList.Add(or);
    }