summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Utils')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs14
-rw-r--r--WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs.meta11
2 files changed, 25 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);
+ }
+
+}
diff --git a/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs.meta b/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs.meta
new file mode 100644
index 0000000..f975f4a
--- /dev/null
+++ b/WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 42ab9985cd771d24caccb1941aa97895
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: