A class in Root.Township, Alta.Progression.Skills.
Bow draw skill that replaces the arrow with a light beam: while active the string carries a beam projectile and the real arrow is destroyed on release. A ScriptableObject asset.
Constructors
| Member | What it is |
|---|
LightBeamSkill() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|
private NetworkPrefab beamPrefab | Network prefab for the light beam. |
Methods
| Member | What it is |
|---|
void DebugShoot(Player player, bool isAtPlayer, float speed) | Server: spawns an unsaved beam in front of the player's head and shoots it forward, or back at the player. |
protected override void HandleInputChanged(bool isEnabled, ISkillInputMethod input, BowString bowString) | When enabled with an arrow docked, adds a beam as an extra arrow; when disabled, removes extra arrows. |
1 private and internal method
| Member | What it is |
|---|
private void DestroyShotArrow(BowString bowString, NetworkEntity shotEntity, Vector3 arg3) | Destroys the arrow that was just shot (the beam goes instead) and unhooks itself. |