private void TestLinkDeletion() { var testLink = FindObjectOfType <ViewLink>(); vml.DeleteLink(testLink.binding); Debug.Assert(vml.linkBindings.Count == 0); Debug.Assert(me.links.Count == 0); }
IEnumerator CheckOnEnter() { while (true) { if (toDelete != null && ViveInput.GetPressUp(selectedHand, ControllerButton.Grip)) { if (toDelete.GetComponent <ViewLink>() != null) { vml.DeleteLink(toDelete.GetComponent <ViewLink>().binding); Debug.Log("Deleted links if any"); } else if (toDelete.GetComponent <ViewBlock>() != null) { vml.Delete(toDelete.GetComponent <ViewBlock>().binding); } } yield return(null); } }