Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TaskId.GetHashCode();
         hashCode = (hashCode * 397) ^ AssetInfo.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)TaskLoadType;
         hashCode = (hashCode * 397) ^ (int)TaskResType;
         hashCode = (hashCode * 397) ^ Priority;
         hashCode = (hashCode * 397) ^ Result.GetHashCode();
         hashCode = (hashCode * 397) ^ (SubTasks != null ? SubTasks.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ FreeSize.GetHashCode();
         hashCode = (hashCode * 397) ^ CreateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ _finishtime.GetHashCode();
         hashCode = (hashCode * 397) ^ PinTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)LoadSceneMode;
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (AssetBundle != null ? AssetBundle.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ AssetBundleInfo.GetHashCode();
                hashCode = (hashCode * 397) ^ (loadedAssets != null ? loadedAssets.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (LoadRequest != null ? LoadRequest.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (LoadAssetRequest != null ? LoadAssetRequest.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (SceneRequest != null ? SceneRequest.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (UnloadSceneRequest != null ? UnloadSceneRequest.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)_status;
#if UNITY_EDITOR
                hashCode = (hashCode * 397) ^ offset;
                hashCode = (hashCode * 397) ^ (history != null ? history.GetHashCode() : 0);
#endif
                hashCode = (hashCode * 397) ^ _userReference;
                hashCode = (hashCode * 397) ^ (References != null ? References.GetHashCode() : 0);
                return(hashCode);
            }
        }