diff options
author | chai <215380520@qq.com> | 2023-05-18 09:30:00 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-18 09:30:00 +0800 |
commit | fdae57bc757aed8c45b725572622c8268591688f (patch) | |
tree | 5fd66559808cd01c3592732bd970ee15bdfa761f /WorldlineKeepers/Assets/Scripts/Utils/DontDestroySelf.cs | |
parent | ef942d6658ae612c9e4bf4e9d00ac70c2149e5fc (diff) |
*misc
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); + } + +} |