OvertakingLegend/Assets/Script/DoNotRemoveScenes.cs

15 lines
267 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 过场景不移除
/// </summary>
public class DoNotRemoveScenes : MonoBehaviour
{
private void Awake()
{
DontDestroyOnLoad(gameObject);
}
}