Skip to main content

MovingObjectsBetweenDocks

A class in Root.Township, the global namespace.

Pooled ghost visual that shows an item flying into a dock, used by Gatherer and PickupContainer. Releases itself when done.

Constructors​

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

Methods​

MemberWhat it is
void ReceiveDirections(PickupDock dock, Transform target, Item item)Starts moving the ghost toward a dock for an item.
1 private and internal method
MemberWhat it is
private IEnumerator Moving(PickupDock dock, Transform target, Item item) (iterator)Runs the dock move animation, then releases the ghosts and itself.