3DTD/Assets/Scripts/Utilities/DontDestroy.cs

12 lines
204 B
C#
Raw Normal View History

2024-04-21 10:38:33 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DontDestroy : MonoBehaviour
{
void Awake()
{
DontDestroyOnLoad(gameObject);
}
}