Skip to main content

Bow

A class in Root.Township, the global namespace.

Networked bow component on a pickup prefab. Holds the hand rest points used when drawing, mirroring the right rest to make a left one.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private bool isPickupBacking field for IsPickup.
private Transform rightHandRestBacking field for RightHandRest.

Properties​

MemberWhat it is
bool IsPickup { get; }Serialized flag, true by default. Probably marks whether the bow is held as a normal pickup.
Transform LeftHandRest { get; private set; }Rest point for a left-handed draw, created at runtime by mirroring RightHandRest.
Pickup Pickup { get; }The entity's common pickup.
Transform RightHandRest { get; }Rest point on the bow for a right-handed draw.

Methods​

1 private and internal method
MemberWhat it is
private void Awake()Creates LeftHandRest as a mirror of the right hand rest across the local X axis.

Used in​

Members of other types that take, return or hold a Bow: