Player Trails
Last updated
Last updated
The PlayerTrails
is resposible for the control over visual trails associated with a player character.
Properties
private PlayerWorker playerWorker
: References the PlayerWorker
associated with PlayerTrails
.
private Transform trailTransform
Constructor
public PlayerTrails(PlayerWorker playerWorker)
: Initializes a new instance of the PlayerTrails
class, assigning thePlayerWorker
.
Methods
public void ToggleTrails()
: Toggles the visibility of the trail effects. If the trails are currently visible, it hides them; if they are hidden, it makes them visible.