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

24 lines
470 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; }
public Camera m_SkillCamera;
private void Awake()
{
instance = this;
DontDestroyOnLoad(gameObject);
2023-10-21 11:55:23 +08:00
if (m_SkillCamera != null)
{
DontDestroyOnLoad(m_SkillCamera.gameObject);
}
2023-10-19 15:00:19 +08:00
}
}
}