首次提交
This commit is contained in:
9
Assets/Scripts/Common/Utils/DontDestroy.cs
Normal file
9
Assets/Scripts/Common/Utils/DontDestroy.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class DontDestroy : MonoBehaviour
|
||||
{
|
||||
void Awake()
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user