コード例 #1
0
 public UXFactory(UXCamera camera) : base(camera, null, null)
 {
     this.uxOnSuccess    = null;
     this.uxOnFailure    = null;
     this.uxCookie       = null;
     this.elements       = new Dictionary <string, UXElement>();
     this.duplicates     = new Dictionary <string, int>();
     this.isCachedScreen = false;
     this.visible        = false;
 }
コード例 #2
0
 protected void Load(ref AssetHandle uxAssetHandle, string uxAssetName, UXFactoryLoadDelegate onSuccess, UXFactoryLoadDelegate onFailure, object cookie)
 {
     this.uxOnSuccess    = onSuccess;
     this.uxOnFailure    = onFailure;
     this.uxCookie       = cookie;
     this.isCachedScreen = (Service.ScreenController != null && Service.ScreenController.LoadCachedScreen(ref uxAssetHandle, uxAssetName, new AssetSuccessDelegate(this.LoadSuccessNoClone), new AssetFailureDelegate(this.LoadFailure), cookie));
     if (!this.isCachedScreen)
     {
         Service.AssetManager.Load(ref uxAssetHandle, uxAssetName, new AssetSuccessDelegate(this.LoadSuccess), new AssetFailureDelegate(this.LoadFailure), null);
     }
 }