private void LeaveAny(Knob knob) { if (knob != null) { knob.Leave(); } }
private void LeaveKnob() { LeaveAny(approached); approached = null; if (grabbed != null) { grabbed.Leave(); grabbed = null; OnRelease(grabbed); } hand = null; }