RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Items.GradiusOption.Components

OptionTracker Class

A component attached to a Character Body that may own Options/Multiples.
The mod handles attaching the component when necessary.

public class OptionTracker

Inheritance UnityEngine.MonoBehaviour 🡒 OptionTracker

Properties  
characterBody Character Body of this Game Object.
characterMaster Character Master of this Game Object.
currentOptionAngle Property that stores the current positional angle from the owner.
Useful for determining patterns relative to the Option’s angle.
masterCharacterMaster The Character Master of this Game Object’s owner through Minion Ownership component.
Methods  
GetRotateMultiplier() Fetches the rotational distance and speed multiplier for this object’s Options.
GetRotateOffset() Fetches the rotational central offset for this object’s Options.