Skip to main content

ThrowableArrow

A class in Root.Township, the global namespace.

Lets an arrow fly as an arrow when thrown by hand: stops arrow flight while held and starts simple flight on release, unless docked.

Constructors​

MemberWhat it is
ThrowableArrow()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private Arrow arrowThe Arrow component.
private Pickup pickupThe arrow's pickup.

Methods​

3 private and internal methods
MemberWhat it is
private void Awake()Subscribes to the pickup's grab and release events.
private void StartUpdatingArrowFlight(Interactable arg1, Interactor arg2)On release, starts simple arrow flight if nothing else holds it and it isn't docked.
private void StopUpdatingArrowFlight(Interactable arg1, Interactor arg2)On grab, stops arrow flight.