채팅 추가
This commit is contained in:
25
Assets/02_Scripts/Managers/AppManager.cs
Normal file
25
Assets/02_Scripts/Managers/AppManager.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class AppManager : MonoBehaviour,ISceneInitializable
|
||||
{
|
||||
public static AppManager Instance { get; private set; }
|
||||
|
||||
public VrmAvatar MyAvatar {get; private set;}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance == null)
|
||||
{
|
||||
Instance = this; //만들어진 자신을 인스턴스로 설정
|
||||
}
|
||||
else
|
||||
{
|
||||
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSceneLoaded()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user