公告板
版本库
filestore
活动
搜索
登录
main
/
Project_SG_client
三国卡牌客户端基础资源仓库
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
257 子 【配套功能】新手引导 / 【常规】引导
hch
2025-10-09
967b0232d8e24e2b1e89c6656fa62f02492bfcb5
[Project_SG_client.git]
/
Assets
/
Launch
/
Common
/
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);
}
}