Exemplo n.º 1
0
 public void Destroy()
 {
     Service.Get <EventManager>().UnregisterObserver(this, EventId.ForceGeometryReload);
     Service.Get <ProjectorManager>().RemoveProjector(this);
     if (this.AssetProcessor != null)
     {
         this.AssetProcessor.UnloadAllAssets(null);
         this.AssetProcessor = null;
     }
     if (this.Renderer != null)
     {
         this.Renderer.Destroy();
         this.Renderer = null;
     }
     if (this.Config != null)
     {
         this.Config.Destroy();
         this.Config = null;
     }
     if (this.ReloadHelper != null)
     {
         this.ReloadHelper.Destroy();
         this.ReloadHelper = null;
     }
 }
        public void Destroy()
        {
            this.baseRenderer.Destroy();
            this.baseRenderer = null;
            int i     = 0;
            int count = this.unsharedMaterials.Count;

            while (i < count)
            {
                UnityUtils.DestroyMaterial(this.unsharedMaterials[i]);
                i++;
            }
            this.unsharedMaterials.Clear();
        }
Exemplo n.º 3
0
 public void Destroy()
 {
     this.baseRenderer.Destroy();
     this.baseRenderer = null;
     if (this.materialCopies != null)
     {
         int i     = 0;
         int count = this.materialCopies.Count;
         while (i < count)
         {
             UnityUtils.DestroyMaterial(this.materialCopies[i]);
             i++;
         }
         this.materialCopies.Clear();
     }
 }
Exemplo n.º 4
0
 public void Destroy()
 {
     Service.ProjectorManager.RemoveProjector(this);
     if (this.AssetProcessor != null)
     {
         this.AssetProcessor.UnloadAllAssets(null);
         this.AssetProcessor = null;
     }
     if (this.Renderer != null)
     {
         this.Renderer.Destroy();
         this.Renderer = null;
     }
     if (this.Config != null)
     {
         this.Config.Destroy();
         this.Config = null;
     }
     if (this.ReloadHelper != null)
     {
         this.ReloadHelper.Destroy();
         this.ReloadHelper = null;
     }
 }
Exemplo n.º 5
0
 public void Destroy()
 {
     this.baseRenderer.Destroy();
     this.baseRenderer = null;
 }
Exemplo n.º 6
0
 public ProjectorAnimationDecorator(IProjectorRenderer baseRenderer)
 {
     this.baseRenderer = baseRenderer;
 }
Exemplo n.º 7
0
 public ProjectorEquipmentBuildingDecorator(IProjectorRenderer baseRenderer)
 {
     this.baseRenderer = baseRenderer;
 }
Exemplo n.º 8
0
 public void Destroy()
 {
     Service.ViewTimeEngine.UnregisterFrameTimeObserver(this);
     this.baseRenderer.Destroy();
     this.baseRenderer = null;
 }
 public ProjectorShaderSwapDecorator(IProjectorRenderer baseRenderer)
 {
     this.baseRenderer      = baseRenderer;
     this.unsharedMaterials = new List <Material>();
 }
 public ProjectorOutlineDecorator(IProjectorRenderer baseRenderer)
 {
     this.baseRenderer = baseRenderer;
 }
 public ProjectorTurretDecorator(IProjectorRenderer baseRenderer)
 {
     this.baseRenderer = baseRenderer;
 }
Exemplo n.º 12
0
 public void Destroy()
 {
     this.baseRenderer.Destroy();
     this.baseRenderer    = null;
     this.shaderMeterComp = null;
 }
Exemplo n.º 13
0
 public ProjectorMeterDecorator(IProjectorRenderer baseRenderer)
 {
     this.baseRenderer = baseRenderer;
 }