24 lines
470 B
C#
24 lines
470 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace Code.Scripts.Gameplay.Utils
|
||
|
|
{
|
||
|
|
public class CmpObjRef : MonoBehaviour
|
||
|
|
{
|
||
|
|
|
||
|
|
public static CmpObjRef instance { get; private set; }
|
||
|
|
|
||
|
|
public Camera m_SkillCamera;
|
||
|
|
|
||
|
|
private void Awake()
|
||
|
|
{
|
||
|
|
instance = this;
|
||
|
|
DontDestroyOnLoad(gameObject);
|
||
|
|
if (m_SkillCamera != null)
|
||
|
|
{
|
||
|
|
DontDestroyOnLoad(m_SkillCamera.gameObject);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|