Player VFX
Last updated
Last updated
The PlayerVFX
is responsible for the management of visual effects for a player character.
Properties
private PlayerWorker playerWorker
: References the PlayerWorker
associated with PlayerVFX
.
public Dictionary<VFXType, GameObject> vfxs
VFXType
Constructor
public PlayerVFX(PlayerWorker playerWorker)
: Initializes a new instance of the PlayerVFX
class, assigning the PlayerWorker
. Also initializes the vfxs
dictionary and populates it with the default VFX for the player.
Methods
public void PlayVFX(VFXType vfxType)
: Activates the visual effect associated with the specified VFXType
.
public void StopVFX(VFXType vfxType)
: Deactivates the visual effect associated with the specified VFXType
.