参考: https://blog.csdn.net/Ro969668074/article/details/81362727 总结: 核心是在monobehaviour的update方法对注册的方法进行调用