// Copyright 2013-2023, AFI.Inc. All rights reserved.

using UnityEngine;

// GameManager는 씬이 바뀌어도 파괴되지 않는 싱글톤 클래스입니다.
public class GameManager : MonoBehaviour {
    public static GameManager Instance = null;
    private void Awake() {
        if (Instance == null) {
            Instance  = this;
            DontDestroyOnLoad(this);
            
        } else {
            Destroy(gameObject);
        }
    }
}
