diff options
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs | 14 |
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); + } + +} |