Skip to content

Commit f290807

Browse files
committed
fix typo
1 parent c48cdc2 commit f290807

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Assets/Scripts/UI/UIPackage.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class UIPackage
6868
string _customId;
6969
bool _fromBundle;
7070
LoadResource _loadFunc;
71-
LoadResourceAsync _loadAysncFunc;
71+
LoadResourceAsync _loadAsyncFunc;
7272

7373
class AtlasSprite
7474
{
@@ -360,7 +360,7 @@ public static UIPackage AddPackage(byte[] descData, string assetNamePrefix, Load
360360
ByteBuffer buffer = new ByteBuffer(descData);
361361

362362
UIPackage pkg = new UIPackage();
363-
pkg._loadAysncFunc = loadFunc;
363+
pkg._loadAsyncFunc = loadFunc;
364364
if (!pkg.LoadPackage(buffer, assetNamePrefix))
365365
return null;
366366

@@ -1261,9 +1261,9 @@ void LoadAtlas(PackageItem item)
12611261
string ext = Path.GetExtension(item.file);
12621262
string fileName = item.file.Substring(0, item.file.Length - ext.Length);
12631263

1264-
if (_loadAysncFunc != null)
1264+
if (_loadAsyncFunc != null)
12651265
{
1266-
_loadAysncFunc(fileName, ext, typeof(Texture), item);
1266+
_loadAsyncFunc(fileName, ext, typeof(Texture), item);
12671267
if (item.texture == null)
12681268
item.texture = new NTexture(null, new Rect(0, 0, item.width, item.height));
12691269
item.texture.destroyMethod = DestroyMethod.None;
@@ -1346,9 +1346,9 @@ void LoadSound(PackageItem item)
13461346
string ext = Path.GetExtension(item.file);
13471347
string fileName = item.file.Substring(0, item.file.Length - ext.Length);
13481348

1349-
if (_loadAysncFunc != null)
1349+
if (_loadAsyncFunc != null)
13501350
{
1351-
_loadAysncFunc(fileName, ext, typeof(AudioClip), item);
1351+
_loadAsyncFunc(fileName, ext, typeof(AudioClip), item);
13521352
if (item.audioClip == null)
13531353
item.audioClip = new NAudioClip(null);
13541354
item.audioClip.destroyMethod = DestroyMethod.None;

0 commit comments

Comments
 (0)