Beispiel #1
0
        public static bool TryGetSoftlockCount(UnityEngine.Object objectWithGUID, out int count)
        {
            string assetGuid = null;

            AssetAccess.TryGetAssetGUIDFromObject(objectWithGUID, out assetGuid);
            return(SoftLockData.TryGetSoftlockCount(assetGuid, out count));
        }
Beispiel #2
0
        public static bool TryHasSoftLocks(string assetGuid, out bool hasSoftLocks)
        {
            hasSoftLocks = false;
            bool result = false;
            int  num    = 0;

            if (SoftLockData.TryGetSoftlockCount(assetGuid, out num))
            {
                result       = true;
                hasSoftLocks = (num > 0);
            }
            return(result);
        }
Beispiel #3
0
        public static bool TryGetSoftlockCount(Scene scene, out int count)
        {
            count = 0;
            bool result;

            if (!scene.IsValid())
            {
                result = false;
            }
            else
            {
                string assetGuid = AssetDatabase.AssetPathToGUID(scene.path);
                bool   flag      = SoftLockData.TryGetSoftlockCount(assetGuid, out count);
                result = flag;
            }
            return(result);
        }