public void PaintInOrange() { this._color = EquipmentPainting.Colors.Orange; foreach (Renderer renderer in this._renderers) { renderer.sharedMaterial = this._orangeMat; } Bloodify component = base.GetComponent <Bloodify>(); if (component) { UnityEngine.Object.Destroy(component); } }
public void PaintInOrange() { this._color = EquipmentPainting.Colors.Orange; Renderer[] renderers = this._renderers; for (int i = 0; i < renderers.Length; i++) { Renderer renderer = renderers[i]; renderer.sharedMaterial = this._orangeMat; } Bloodify component = base.GetComponent <Bloodify>(); if (component) { UnityEngine.Object.Destroy(component); } }