Skip to main content

PickupDockScaleCompare

A class in Root.Township, the global namespace.

Debug component for a two-dock group that logs the weight difference between the docks when you press the 0 key.

Constructors​

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

Methods​

5 private and internal methods
MemberWhat it is
private float Dock0Check()Returns the first dock's stored weight: one item's raw weight times the quantity stored.
private float Dock1Check()Returns the second dock's stored weight, the same way as Dock0Check.
private float ScaleCompare(float dock0Weight, float dock1weight)Logs and returns the first weight minus the second.
private void Start()Empty.
private void Update()Runs the comparison when the 0 key is pressed.