/// <summary> /// Release the pickable object held if any. /// </summary> protected virtual void StopPicking() { if (IsHolding) { if (!PickedObj.Equals(null) && PickedObj.Picker == this) { PickedObj.OnReleased(this); } IsHolding = false; PickedObj = null; Debug.Log("Stop picking."); } }