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

18 lines
304 B
C#

using UnityEngine;
namespace Code.Scripts.Gameplay.Utils
{
public class CmpObjRef : MonoBehaviour
{
public static CmpObjRef instance { get; private set; }
private void Awake()
{
instance = this;
DontDestroyOnLoad(gameObject);
}
}
}