跨场景不销毁

来源:互联网 发布:用excel做数据统计 编辑:程序博客网 时间:2024/06/05 10:43
 GameObject[] obj = GameObject.FindGameObjectsWithTag(Constant.GameController);
 if(obj.Length == 2)
        {
  DestroyImmediate(obj[1]);
        }

原创粉丝点击