NullReferenceException errors

I’m sure it was this change to the file that caused the problem:

  • The scene runs normally in Unity engine
  • However, when the project is packaged
    as a PC game pack or Apk file, there
    are many NullReferenceException
    errors when running into this
    scene (map1.unity)
  • It was a bug in a project I was
    working on with someone else, and we
    couldn’t do anything about it

Would you please tell me how to solve this problem and the possible cause of the problem, thank you very much

Here is the github repository address for the change:

Here is the error log:

It is gameObjectFindWithTag problem, as for why the packaging error should be the fetch order is different, the solution is to use manager instead