public void ConnectTo(Membrane newNext) { Assert.IsNull(newNext.prev); Assert.IsNull(nextJoint); nextJoint = JointWrapper.MakeJoint(this, newNext); Assert.IsNotNull(nextJoint); }
public virtual void OnCellPartEnterNearby(SimplePart cp) { if (Distance(cp) < CellPartBalance.i.springMaxDist && cp.transform.parent == transform.parent) { JointWrapper.MakeJoint(this, cp); } }
IEnumerator DragCoroutine() { while (Mouse.RightMouse()) { yield return(null); } Debug.Log("Mouse released"); if (Mouse.currentlyOver != null) { JointWrapper.MakeJoint(this, Mouse.currentlyOver); } }
public override void OnCellPartEnterNearby(SimplePart cp) { JointWrapper.MakeJoint(this, cp); }