diff options
author | chai <chaifix@163.com> | 2018-09-23 19:34:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-23 19:34:47 +0800 |
commit | e61e555361940b1b3c865520d78b203df03237c5 (patch) | |
tree | 60359aa163dbebbccb19017d643fadc46ad0a7f0 /Box2d/Assets/Program/Test/DontDestroyOnLoad.cs | |
parent | 146e343b49af2ade042dc416b983ef1f06cf712b (diff) |
*update
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); + } + +} |