基于 Unity 2021.x
2021版,将代码第9行的Destory(gameobjact)改成Destroy(this.gameObject)
private static 在同一个类名脚本中都可以访问到。