Skip to main content

ChildCheckOnOwned

A class in Root.Township, the global namespace.

Server: when the entity spawns, fires one of two events depending on whether it has child entities.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private AltaEvent hasChildFired on server spawn when the entity has at least one child.
private AltaEvent hasNoChildFired on server spawn when the entity has no children.

Methods​

MemberWhat it is
override void InitializeAsServer(SpawnData spawnData)Server: fires hasChild if the entity has children, otherwise hasNoChild.