公告板
版本库
filestore
活动
搜索
登录
main
/
Project_SG_scripts
三国卡牌客户端代码仓库
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
0312 版本号统一显示格式;表格重复加载;去除登录界面音乐;隐私界面调整;界面存在动画才增加根节点,无动画时默认组件可交互,点击空关闭mask的层级问题
hch
2025-06-10
c8d3e3bc65d9d1021c41b07fbbedd0c6afeb2b8c
[Project_SG_scripts.git]
/
Main
/
Utility
/
DontDestroyOnLoad.cs
1
2
3
4
5
6
7
8
9
10
11
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DontDestroyOnLoad : MonoBehaviour
{
void Awake()
{
DontDestroyOnLoad(gameObject);
}
}