Esempio n. 1
0
    public void ButtonSelected(MenuSimpleButton.StandardButton bt)
    {
        Debug.Log("Meta button clicked: : " + bt);
        var appState = ExcersizeAppState.main.State;
        var dir      = -2;

        switch (bt)
        {
        case MenuSimpleButton.StandardButton.ContextDecrease:
            dir = -1;
            break;

        case MenuSimpleButton.StandardButton.ContextBalance:
            dir = 0;
            break;

        case MenuSimpleButton.StandardButton.ContextIncrease:
            dir = 1;
            break;

        default:
            return;             // ignore it
        }
        Debug.Log("Meridian State changed: " + this.MeridianId + " to " + dir);
        appState.GetMeridianState(this.MeridianId).Direction = dir;
        appState.DoMeridianChanged();
    }
Esempio n. 2
0
 public void ButtonSelected(MenuSimpleButton.StandardButton bt)
 {
     if (bt == MenuSimpleButton.StandardButton.PlayOrPause)
     {
         var vman = this.VOMan;
         if (this.IsAmbientAudio)
         {
             vman.IsBackgroundMusicPlaying = !vman.IsBackgroundMusicPlaying;
         }
         else
         {
             if (vman.CurrentTrack != this.PlayThis)
             {
                 vman.ChangeTrack(this.PlayThis);
             }
             else
             {
                 if (vman.Player.isPlaying)
                 {
                     vman.Player.Pause();
                 }
                 else
                 {
                     vman.Player.Play();
                 }
             }
         }
     }
 }
Esempio n. 3
0
    public void ButtonHoverChanged(MenuSimpleButton.StandardButton bt, bool isHovered)
    {
        var appState = ExcersizeAppState.main.State;

        if (isHovered)
        {
            appState.HoverMeridian = this.MeridianId;
        }
        else
        {
            appState.HoverMeridian = MeridianPath.EMeridian.Unknown;
        }
    }
Esempio n. 4
0
 public void ButtonHoverChanged(MenuSimpleButton.StandardButton bt, bool isHovered)
 {
 }