diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs index 1534b6b..8dc2a60 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/BootScene.cs @@ -40,7 +40,7 @@ public class BootScene : MonoBehaviour if (PlayMode == YooAssets.EPlayMode.EditorSimulateMode) { var createParameters = new YooAssets.EditorSimulateModeParameters(); - createParameters.LocationServices = new DefaultLocationServices("Assets/Samples/BasicSample/GameRes"); + createParameters.LocationServices = new AddressLocationServices(); //createParameters.SimulatePatchManifestPath = GetPatchManifestPath(); yield return YooAssets.InitializeAsync(createParameters); } @@ -49,7 +49,7 @@ public class BootScene : MonoBehaviour if (PlayMode == YooAssets.EPlayMode.OfflinePlayMode) { var createParameters = new YooAssets.OfflinePlayModeParameters(); - createParameters.LocationServices = new DefaultLocationServices("Assets/Samples/BasicSample/GameRes"); + createParameters.LocationServices = new AddressLocationServices(); yield return YooAssets.InitializeAsync(createParameters); } @@ -57,7 +57,7 @@ public class BootScene : MonoBehaviour if (PlayMode == YooAssets.EPlayMode.HostPlayMode) { var createParameters = new YooAssets.HostPlayModeParameters(); - createParameters.LocationServices = new DefaultLocationServices("Assets/Samples/BasicSample/GameRes"); + createParameters.LocationServices = new AddressLocationServices(); createParameters.DecryptionServices = null; createParameters.ClearCacheWhenDirty = false; createParameters.DefaultHostServer = GetHostServerURL(); diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs index fde0bed..4a4346f 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs @@ -72,7 +72,7 @@ public class Game1Scene : MonoBehaviour #if UNITY_WEBGL { var rawImage = CanvasRoot.transform.Find("background").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetAsync("Texture/bg"); + AssetOperationHandle handle = YooAssets.LoadAssetAsync("bg"); _cachedAssetOperationHandles.Add(handle); handle.Completed += (AssetOperationHandle obj) => { @@ -82,7 +82,7 @@ public class Game1Scene : MonoBehaviour #else { var rawImage = CanvasRoot.transform.Find("background").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetSync("Texture/bg"); + AssetOperationHandle handle = YooAssets.LoadAssetSync("bg"); _cachedAssetOperationHandles.Add(handle); rawImage.texture = handle.AssetObject as Texture; } @@ -92,7 +92,7 @@ public class Game1Scene : MonoBehaviour #if UNITY_WEBGL { var logoImage = CanvasRoot.transform.Find("title/logo").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetAsync("Texture/logo.png"); + AssetOperationHandle handle = YooAssets.LoadAssetAsync("logo"); _cachedAssetOperationHandles.Add(handle); handle.Completed += (AssetOperationHandle obj) => { @@ -102,7 +102,7 @@ public class Game1Scene : MonoBehaviour #else { var logoImage = CanvasRoot.transform.Find("title/logo").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetSync("Texture/logo.png"); + AssetOperationHandle handle = YooAssets.LoadAssetSync("logo"); _cachedAssetOperationHandles.Add(handle); logoImage.sprite = handle.AssetObject as Sprite; } @@ -112,10 +112,10 @@ public class Game1Scene : MonoBehaviour { string[] entityAssetNames = { - "Level1/footman_Blue", - "Level2/footman_Green", - "Level3/footman_Red", - "Level3/footman_Yellow" + "footman_Blue", + "footman_Green", + "footman_Red", + "footman_Yellow" }; var btn = CanvasRoot.transform.Find("load_npc/btn").GetComponent