예제 #1
0
    private void Awake()
    {
        StartLayer.SetActive(true);

        if (_instance == null)
        {
            _instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            DestroyImmediate(gameObject);
        }
    }