Files
UnityPackages/Assets/Common/Infrastructure/Runtime/DontDestroyOnLoad.cs
2025-12-01 12:36:01 +08:00

12 lines
228 B
C#

using UnityEngine;
namespace JoeSiu.Common.Infrastructure.Runtime
{
public class DontDestroyOnLoad : MonoBehaviour
{
private void Awake()
{
DontDestroyOnLoad(gameObject);
}
}
}