Example #1
0
    void RemoveWrongSelection()
    {
//		Debug.Log("Cap destroy = " + currentCapName);
        VectorLine.RemoveEndCap(currentCapName);
        endCaps.Remove(currentCapName);
        VectorLine.Destroy(ref currentSelectionLine);
    }
Example #2
0
    void OnDestroy()
    {
//		VectorLine.Destroy(ref bottomBorder);
        for (int i = 0; i < endCaps.Count; i++)
        {
//			Debug.Log("Cap OnDestroy = " + endCaps[i]);
            VectorLine.RemoveEndCap(endCaps[i]);
        }
        VectorLine.Destroy(selectionLines);
        if (currentSelectionLine != null)
        {
//			Debug.Log("Detcroyinjdhdvhdhhdhvhdhj");
            VectorLine.Destroy(ref currentSelectionLine);
        }
//		if(borderLine != null )
//		{
//			VectorLine.Destroy(ref borderLine);
//		}
    }