NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GameWrapper/CmpObjRef.cs

18 lines
304 B
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00
using UnityEngine;
namespace Code.Scripts.Gameplay.Utils
{
2023-10-21 11:55:23 +08:00
public class CmpObjRef : MonoBehaviour
2023-10-19 15:00:19 +08:00
{
public static CmpObjRef instance { get; private set; }
private void Awake()
{
instance = this;
DontDestroyOnLoad(gameObject);
}
}
}