diff options
Diffstat (limited to 'Box2d/Assets/Program/Test/DontDestroyOnLoad.cs')
-rw-r--r-- | Box2d/Assets/Program/Test/DontDestroyOnLoad.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Box2d/Assets/Program/Test/DontDestroyOnLoad.cs b/Box2d/Assets/Program/Test/DontDestroyOnLoad.cs new file mode 100644 index 0000000..0ea2e7f --- /dev/null +++ b/Box2d/Assets/Program/Test/DontDestroyOnLoad.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class DontDestroyOnLoad : MonoBehaviour +{ + + private void Awake() + { + DontDestroyOnLoad(gameObject); + } + +} |