コード例 #1
0
 public void RemoveOutline(EdgeAttach outline)
 {
     if (_outlines.Contains(outline))
     {
         _outlines.Remove(outline);
     }
 }
コード例 #2
0
 public void AddOutline(EdgeAttach outline)
 {
     if (!_outlines.Contains(outline))
     {
         _outlines.Add(outline);
     }
 }
コード例 #3
0
    public static void DestroyShader(GameObject manipulate)
    {
        EdgeAttach toDestroy = manipulate.GetComponent <EdgeAttach>();

        if (toDestroy != null)
        {
            Destroy(toDestroy);
        }
    }
コード例 #4
0
    public static void DisableShader(GameObject manipulate)
    {
        EdgeAttach outline = manipulate.GetComponent <EdgeAttach>();

        if (outline != null && outline.enabled)
        {
            outline.enabled = false;
        }
    }
コード例 #5
0
    public static void TurnOnShader(GameObject manipulate)
    {
        EdgeAttach retrievedEdge = manipulate.GetComponent <EdgeAttach>();

        if (retrievedEdge == null)
        {
            manipulate.AddComponent <EdgeAttach>();
        }
        else
        {
            retrievedEdge.enabled = true;
        }
    }