Skip to main content

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.

Constructors​

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

Fields​

8 private and internal fields
MemberWhat it is
private readonly int _FillProgressShader property ID for _FillProgress.
private Renderer animatingRendererRenderer whose material shows the fill.
private FixedJoint currentJointFixed joint to the replacer now in use, or null.
private SkillOrbReplacer currentReplacerReplacer now joined, or null.
private Coroutine fadeAnimationRunning fade coroutine, or null.
private float fadeDurationSeconds to fade the fill out.
private ExperienceFillVisualizer fillVisualizerExperience fill visual updated with buy progress.
private Rigidbody rigidBodyBacking field for Rigidbody.

Properties​

MemberWhat it is
Rigidbody Rigidbody { get; }Rigidbody the replacer is joined to.

Methods​

MemberWhat 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
MemberWhat it is
private IEnumerator FadeProgress() (iterator)Coroutine that fades the fill shader value back to 0 over fadeDuration.

Used in​

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