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(); }
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(); } }
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; } }
public void Destroy() { this.baseRenderer.Destroy(); this.baseRenderer = null; }
public ProjectorAnimationDecorator(IProjectorRenderer baseRenderer) { this.baseRenderer = baseRenderer; }
public ProjectorEquipmentBuildingDecorator(IProjectorRenderer baseRenderer) { this.baseRenderer = baseRenderer; }
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; }
public void Destroy() { this.baseRenderer.Destroy(); this.baseRenderer = null; this.shaderMeterComp = null; }
public ProjectorMeterDecorator(IProjectorRenderer baseRenderer) { this.baseRenderer = baseRenderer; }