Thanks! Issue was caused by object creation order, which is handled slightly differently in a Unity build (not quite sure why). Changed dungeon generator to "Awake" instead of "Start" to ensure the correct order.