Exemplo n.º 1
0
 public void ButtonPressed(int b)
 {
     if (b == 1) // Back button
     {
         if (online)
         {
             onlineSkill = skillLevel;
         }
         else
         {
             offlineSkill = skillLevel;
         }
         owner.BackToMainMenuFromSetting();
     }
     else if (b == 0) // Start button
     {
         if (online)
         {
             owner.HostGameSession();
         }
         else
         {
             owner.ShowSingleplayerScreenWithSkill(skillLevel);
         }
     }
 }