Skip to main content

FireStatusRaycastCrafter

A class in Root.Township, Alta.Heat.

A RaycastCrafter that copies a fire's state onto what it crafts, so a lit item stays lit when it becomes the new object.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Fire baseFireThe fire whose state is copied.

Methods​

MemberWhat it is
protected override void OnSpawn(NetworkEntity spawned)Copies baseFire's progress and enabled state to the first Fire found on the spawned entity.