コード例 #1
0
    void Awake()
    {
        UISystemPopup.init();
        _isMuteSound = (PlayerPrefs.GetInt("SFX") == 0)?false:true;

        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(this.gameObject);
            gameObject.transform.parent = null;
        }
        else
        {
            Destroy(gameObject);
        }
    }