Ejemplo n.º 1
0
 public override void Enter()
 {
     base.Enter();
     if (!uiHandler.GM.gameSaver.HasValidSaving())
     {
         buttonGroup.DisableButton((int)Selection.Load);
         // Debug.Log("disable");
     }
 }
Ejemplo n.º 2
0
    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
    }