A class in Root.Township, Alta.Alchemy.
Build-up effect that teleports the target to a random point in a spawn area once enough strength has built up.
Constructors
| Member | What it is |
|---|
BuildupTeleportEffect() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private SpawnAreaIdentifier landingTarget | Spawn area to teleport to. |
private float minStrengthToApply | Built-up strength needed before the teleport happens. Defaults to 0.8. |
Methods
| Member | What it is |
|---|
protected override void Apply(EffectHandler target, float strength) | Teleports the target to a random spawn position in landingTarget when strength is above minStrengthToApply. |