public override void Enter() { base.Enter(); if (!uiHandler.GM.gameSaver.HasValidSaving()) { buttonGroup.DisableButton((int)Selection.Load); // Debug.Log("disable"); } }
public override void Enter() { base.Enter(); //AudioSource audioSource = parentNode.transform.parent.Find("MainMenu BGM").GetComponent<AudioSource>(); // if(!audioSource.isPlaying){ // audioSource.Play(); // } AkSoundEngine.PostEvent("Play_Music", uiHandler.GM.gameObject); if (!uiHandler.GM.gameSaver.HasValidSaving()) { buttonGroup.DisableButton((int)Selection.Load); // Debug.Log("disable"); } else { buttonGroup.EnableButton((int)Selection.Load); } // play bgm }