/// <summary> /// This function will be called in FixedUpdate cycle. It calls the pickable object's /// OnPickedUpdate function. /// </summary> protected virtual void PickingFixedUpdate() { // Check if PickedObj has been destroyed if (PickedObj == null || PickedObj.Equals(null)) { PickedObj = null; IsHolding = false; return; } if (IsHolding) { PickedObj.OnPickedUpdate(this); } }