feat: initial commit
This commit is contained in:
12
Assets/Common/Infrastructure/Runtime/DontDestroyOnLoad.cs
Normal file
12
Assets/Common/Infrastructure/Runtime/DontDestroyOnLoad.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace JoeSiu.Common.Infrastructure.Runtime
|
||||
{
|
||||
public class DontDestroyOnLoad : MonoBehaviour
|
||||
{
|
||||
private void Awake()
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user