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

18 lines
291 B
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00
using UnityEngine;
2025-09-04 14:01:19 +08:00
namespace Gameplay.Utils
2023-10-19 15:00:19 +08:00
{
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);
}
}
}