ArrowFlightModifierComponent
A class in Root.Township, the global namespace.
Goes on an arrow part (such as fletching). When the part is crafted onto an arrow it adds its flight modifier to that Arrow, and removes it when taken off.
Constructors
| Member | What it is |
|---|
ArrowFlightModifierComponent() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Properties
Methods
3 private and internal methods
| Member | What it is |
|---|
private void Awake() | Subscribes to the crafting part's crafted and decrafted events. |
private void OnCrafted(CraftingPart slot, bool isLoad) | Adds the modifier to the Arrow above the connected part. |
private void OnDecrafted(CraftingPart obj, bool isLoad) | Removes the modifier from the Arrow above the connected part. |