예제 #1
0
 private void Awake()
 {
     Instance = this;
     DontDestroyOnLoad(gameObject);
 }
예제 #2
0
 private void OnDestroy()
 {
     Instance = null;
 }