Skip to main content

PointTowardsEachotherPart

A class in Root.Township, the global namespace.

Generation part that makes the last objects spawned by two spawner parts point towards each other.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private SpawnerPart aFirst spawner part.
private SpawnerPart bSecond spawner part.

Methods​

MemberWhat it is
override void GenerateDynamic(GenerationCore core)If both spawned objects have an IPointTowards, points each at the other's origin.