Esempio n. 1
0
 /// <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>
 /// Interacts with this drawer by toggling it (<see cref="ToggleDrawer"/>).
 /// </summary>
 /// <param name="interactor">The initiator of this interaction.</param>
 public void Interact(Interactor interactor) => this.ToggleDrawer();
Esempio n. 3
0
 /// <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();