public void RemoveOutline(EdgeAttach outline) { if (_outlines.Contains(outline)) { _outlines.Remove(outline); } }
public void AddOutline(EdgeAttach outline) { if (!_outlines.Contains(outline)) { _outlines.Add(outline); } }
public static void DestroyShader(GameObject manipulate) { EdgeAttach toDestroy = manipulate.GetComponent <EdgeAttach>(); if (toDestroy != null) { Destroy(toDestroy); } }
public static void DisableShader(GameObject manipulate) { EdgeAttach outline = manipulate.GetComponent <EdgeAttach>(); if (outline != null && outline.enabled) { outline.enabled = false; } }
public static void TurnOnShader(GameObject manipulate) { EdgeAttach retrievedEdge = manipulate.GetComponent <EdgeAttach>(); if (retrievedEdge == null) { manipulate.AddComponent <EdgeAttach>(); } else { retrievedEdge.enabled = true; } }