SkillOrbOperator
A class in Root.Township, the global namespace.
The point on a skill shrine where a player holds a skill orb to buy or swap it. SkillOrbReplacer joins to it, drives the fill and breaks the joint when done.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
SkillOrbOperator() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private readonly int _FillProgress | Shader property ID for _FillProgress. |
private Renderer animatingRenderer | Renderer whose material shows the fill. |
private FixedJoint currentJoint | Fixed joint to the replacer now in use, or null. |
private SkillOrbReplacer currentReplacer | Replacer now joined, or null. |
private Coroutine fadeAnimation | Running fade coroutine, or null. |
private float fadeDuration | Seconds to fade the fill out. |
private ExperienceFillVisualizer fillVisualizer | Experience fill visual updated with buy progress. |
private Rigidbody rigidBody | Backing field for Rigidbody. |
Properties
| Member | What it is |
|---|---|
Rigidbody Rigidbody { get; } | Rigidbody the replacer is joined to. |
Methods
| Member | What it is |
|---|---|
void BreakJoint(bool confirmBuy) | Removes the joint, tells the replacer and fill visual it's done (bought or not), and fades the fill out. |
void CreateJoint(SkillOrbReplacer replacer) | Snaps the replacer to the operator and joins it with a fixed joint, replacing any existing one and resetting the fill. |
void SetInternalProgress(float progress) | Sets the hold progress on the fill shader and the experience fill visual. |
1 private and internal method
Used in
Members of other types that take, return or hold a SkillOrbOperator: