how to debug calculation bugs in unity