update space shooter
parent
f7317cbe87
commit
bc89c175e0
|
@ -10,7 +10,7 @@ namespace YooAsset.Editor
|
||||||
{
|
{
|
||||||
static PackageCompareWindow _thisInstance;
|
static PackageCompareWindow _thisInstance;
|
||||||
|
|
||||||
[MenuItem("YooAsset/补丁包比对工具", false, 302)]
|
[MenuItem("Tools/补丁包比对工具", false, 102)]
|
||||||
static void ShowWindow()
|
static void ShowWindow()
|
||||||
{
|
{
|
||||||
if (_thisInstance == null)
|
if (_thisInstance == null)
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace YooAsset.Editor
|
||||||
{
|
{
|
||||||
static PackageImportWindow _thisInstance;
|
static PackageImportWindow _thisInstance;
|
||||||
|
|
||||||
[MenuItem("YooAsset/补丁包导入工具", false, 301)]
|
[MenuItem("Tools/补丁包导入工具", false, 101)]
|
||||||
static void ShowWindow()
|
static void ShowWindow()
|
||||||
{
|
{
|
||||||
if (_thisInstance == null)
|
if (_thisInstance == null)
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
public class StreamingAssetsDefine
|
||||||
|
{
|
||||||
|
public const string RootFolderName = "yoo";
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7e44d691f47abe34e9deb9cb309074f4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -3,11 +3,6 @@ using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
public class StreamingAssetsDefine
|
|
||||||
{
|
|
||||||
public const string RootFolderName = "yoo";
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内置文件查询服务类
|
/// 内置文件查询服务类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -6,26 +6,21 @@ using UnityEngine;
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
public class StreamingAssetsDefine
|
|
||||||
{
|
|
||||||
public const string RootFolderName = "yoo";
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内置文件查询服务类
|
/// 内置文件查询服务类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GameQueryServices : IQueryServices
|
public class GameQueryServices2 : IQueryServices
|
||||||
{
|
{
|
||||||
public bool QueryStreamingAssets(string packageName, string fileName)
|
public bool QueryStreamingAssets(string packageName, string fileName)
|
||||||
{
|
{
|
||||||
return StreamingAssetsHelper.FileExists($"{StreamingAssetsDefine.RootFolderName}/{packageName}/{fileName}");
|
return StreamingAssetsHelper2.FileExists($"{StreamingAssetsDefine.RootFolderName}/{packageName}/{fileName}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// StreamingAssets目录下资源查询帮助类
|
/// StreamingAssets目录下资源查询帮助类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class StreamingAssetsHelper
|
public sealed class StreamingAssetsHelper2
|
||||||
{
|
{
|
||||||
private static readonly Dictionary<string, bool> _cacheData = new Dictionary<string, bool>(1000);
|
private static readonly Dictionary<string, bool> _cacheData = new Dictionary<string, bool>(1000);
|
||||||
|
|
||||||
|
@ -131,7 +126,9 @@ internal class AndroidPost : UnityEditor.Android.IPostGenerateGradleAndroidProje
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
// 以下代码为安卓原生代码,不需要解除注释
|
||||||
//auto-gen-function
|
//auto-gen-function
|
||||||
public boolean CheckAssetExist(String filePath)
|
public boolean CheckAssetExist(String filePath)
|
||||||
{
|
{
|
Loading…
Reference in New Issue