/// <summary> /// Called when this object has been dropped by an <see cref="Interactor"/> (usually a player). /// Calls <see cref="EnablePhysics"/> to enable physics for this object. /// </summary> /// <param name="dropped">The object that has been dropped.</param> /// <param name="dropper">The interactor that has dropped <paramref name="dropped"/>.</param> private void OnDropped(PickableObject dropped, Interactor dropper) => this.EnablePhysics();
/// <summary> /// Called when this object has been picked up by an <see cref="Interactor"/> (usually a player). /// Calls <see cref="DisablePhysics"/> to disable physics for this object. /// </summary> /// <param name="pickedUp">The object that has been picked up.</param> /// <param name="picker">The interactor that has picked up <paramref name="pickedUp"/>.</param> private void OnPickedUp(PickableObject pickedUp, Interactor picker) => this.DisablePhysics();