コード例 #1
0
 void Awake()
 {
     if (_gameSoundManager == null)
     {
         _gameSoundManager = this;
     }
     //panel=GameObject.FindGameObjectWithTag("Panel");
 }
コード例 #2
0
	// Use this for initialization
	void Start () {

        if (instance == null)
            instance = this;

        DontDestroyOnLoad(gameObject);
        gameAudioSource = GetComponents<AudioSource>()[0];
        sfxAudioSource = GetComponents<AudioSource>()[1];
        playTitleTrack();
	}