From 1adc3d7ed6f97238d29ffadcac828aa64a15b0ef Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 30 Jun 2022 12:02:06 +0800 Subject: [PATCH] Update document --- Docs/CodeTutorial1.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Docs/CodeTutorial1.md b/Docs/CodeTutorial1.md index 6ca7e62..a1476c9 100644 --- a/Docs/CodeTutorial1.md +++ b/Docs/CodeTutorial1.md @@ -4,7 +4,7 @@ ````C# // 资源系统初始化方法,根据不同的模式,我们传递不同的创建参数类 -YooAssets.InitializeAsync(CreateParameters parameters); +YooAssets.InitializeAsync(InitializeParameters parameters); ```` **编辑器模拟模式** @@ -16,9 +16,9 @@ YooAssets.InitializeAsync(CreateParameters parameters); ````c# private IEnumerator InitializeYooAsset() { - var createParameters = new YooAssets.EditorSimulateModeParameters(); - createParameters.LocationServices = new DefaultLocationServices("Assets/GameRes"); - yield return YooAssets.InitializeAsync(createParameters); + var initParameters = new YooAssets.EditorSimulateModeParameters(); + initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes"); + yield return YooAssets.InitializeAsync(initParameters); } ```` @@ -31,9 +31,9 @@ private IEnumerator InitializeYooAsset() ````c# private IEnumerator InitializeYooAsset() { - var createParameters = new YooAssets.OfflinePlayModeParameters(); - createParameters.LocationServices = new DefaultLocationServices("Assets/GameRes"); - yield return YooAssets.InitializeAsync(createParameters); + var initParameters = new YooAssets.OfflinePlayModeParameters(); + initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes"); + yield return YooAssets.InitializeAsync(initParameters); } ```` @@ -64,14 +64,14 @@ private IEnumerator InitializeYooAsset() ````c# private IEnumerator InitializeYooAsset() { - var createParameters = new YooAssets.HostPlayModeParameters(); - createParameters.LocationServices = new DefaultLocationServices("Assets/GameRes"); - createParameters.DecryptionServices = null; - createParameters.ClearCacheWhenDirty = false; - createParameters.DefaultHostServer = "http://127.0.0.1/CDN1/Android"; - createParameters.FallbackHostServer = "http://127.0.0.1/CDN2/Android"; - createParameters.VerifyLevel = EVerifyLevel.High; - yield return YooAssets.InitializeAsync(createParameters); + var initParameters = new YooAssets.HostPlayModeParameters(); + initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes"); + initParameters.DecryptionServices = null; + initParameters.ClearCacheWhenDirty = false; + initParameters.DefaultHostServer = "http://127.0.0.1/CDN1/Android"; + initParameters.FallbackHostServer = "http://127.0.0.1/CDN2/Android"; + initParameters.VerifyLevel = EVerifyLevel.High; + yield return YooAssets.InitializeAsync(initParameters); } ````