Beispiel #1
0
 public virtual void Destroy()
 {
     if (this.assetHandle != AssetHandle.Invalid)
     {
         base.Unload(this.assetHandle, this.assetName);
         this.assetHandle = AssetHandle.Invalid;
     }
     base.DestroyFactory();
     this.rootTrans        = null;
     this.transformToTrack = null;
     this.camera           = null;
 }
Beispiel #2
0
 public AbstractSquadWarBoardElement(string assetName) : base(Service.CameraManager.UXCamera)
 {
     this.assetName = assetName;
     if (!string.IsNullOrEmpty(GameConstants.WARBOARD_LABEL_OFFSET))
     {
         string[] array = GameConstants.WARBOARD_LABEL_OFFSET.Split(new char[]
         {
             ','
         });
         if (array.Length == 3)
         {
             this.localOffset = new Vector3(Convert.ToSingle(array[0]), Convert.ToSingle(array[1]), Convert.ToSingle(array[2]));
         }
     }
     this.assetHandle = AssetHandle.Invalid;
     base.Load(ref this.assetHandle, assetName, new UXFactoryLoadDelegate(this.OnScreenLoaded), new UXFactoryLoadDelegate(this.LoadFailed), null);
     this.camera = Service.CameraManager.WarBoardCamera;
 }