summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs b/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs
new file mode 100644
index 0000000..482a088
--- /dev/null
+++ b/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs
@@ -0,0 +1,14 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+[DefaultExecutionOrder(-1000)]
+public class DontDestroySelf : MonoBehaviour
+{
+
+ private void Awake()
+ {
+ DontDestroyOnLoad(this.gameObject);
+ }
+
+}