ict.shenzhi/Assets/Evereal/VideoCapture/Scripts/Internal/DontDestroy.cs

14 lines
238 B
C#

/* Copyright (c) 2020-present Evereal. All rights reserved. */
using UnityEngine;
namespace Evereal.VideoCapture
{
public class DontDestroy : MonoBehaviour
{
void Awake()
{
DontDestroyOnLoad(gameObject);
}
}
}