Exemple #1
0
        // Start is called before the first frame update
        void Start()
        {
            switch (bgm)
            {
            case Bgm.Pause:
                BackSoundManager.Pause();
                break;

            case Bgm.UnPause:
                BackSoundManager.UnPause();
                break;
            }
        }
Exemple #2
0
        void Awake()
        {
            if (instance != null && instance != this)
            {
                Destroy(this.gameObject);
                return;
            }

            else
            {
                DontDestroyOnLoad(gameObject);
                instance = this;
            }
        }