公告板
版本库
filestore
活动
搜索
登录
main
/
Project_SG_scripts
三国卡牌客户端代码仓库
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
125 【战斗】战斗系统 - 增加休息包 和 默认请求刷怪逻辑
hch
2025-09-03
a963e7aa3d1c7a69f803405e203390b3fb43c8c5
[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);
}
}