This commit is contained in:
Vladimir Koshevarov
2023-03-15 18:05:32 +02:00
parent fcf8701322
commit 39ce016c1e
42 changed files with 8260 additions and 602 deletions
+18
View File
@@ -0,0 +1,18 @@
using UnityEngine;
public class DontDestroy : MonoBehaviour
{
public static DontDestroy Instance { get; private set; }
private void Awake()
{
if (Instance == null)
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
else
Destroy(gameObject);
}
}