Skip to main content

WoodcutPooledObject

A class in Root.Township, the global namespace.

Pooled woodcutting particle effect that destroys itself after a time and takes on a tree species' wood material.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private ParticleSystemRenderer[] particlesThe particle renderers that get the species material.

Methods​

MemberWhat it is
void SetSpecies(TreeSpecies species)Sets every particle renderer to the species' non-atlased, non-deforming wood material (channel A).