Skip to main content

RepairBoxVfxController

A class in Root.Township, Features.

VFX controller for the repair box. Each method plays or stops one effect from the GenericVFXController list by a configured index.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private int itemDepositedVfxIndexIndex of the item deposited effect (default 0).
private int refundVfxIndexIndex of the refund effect (default 3).
private int repairCompletedVfxIndexIndex of the repair completed effect (default 1).
private int vortexVfxIndexIndex of the vortex effect (default 2).

Methods​

MemberWhat it is
void PlayItemDepositedVfx()Plays the effect for an item being put into the box.
void PlayItemRefundedVfx()Plays the effect for an item being refunded.
void PlayRepairCompletedVfx()Plays the effect for a finished repair.
void PlayVortexVfx()Starts the vortex effect.
void StopVortexVfx()Stops the vortex effect.

Used in​

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