sdsandbox-rl-scripts/Scripts/utility/DontDestroy.cs

9 lines
140 B
C#
Executable File

using UnityEngine;
public class DontDestroy : MonoBehaviour
{
void Awake()
{
DontDestroyOnLoad(this.gameObject);
}
}