1234567891011121314151617181920212223 |
- using UnityEngine;
- using FairyGUI;
- namespace GFGGame
- {
- public class GFGGLoader : GLoader
- {
- protected override void LoadExternal()
- {
- Texture2D texture = GFGAsset.Load<Texture2D>(this.url);
- if (texture != null)
- onExternalLoadSuccess(new NTexture(texture));
- else
- onExternalLoadFailed();
- }
- protected override void FreeExternal(NTexture texture)
- {
- //释放外部载入的资源
- GFGAsset.Release(this.url);
- }
- }
- }
|