title: C# switch syntax error
body: <p>I have this switch statement to test the case of my Grounded integer variable but my Unity-Monodevelop says I have weird syntax errors within my code which I can't find. I am hoping someone can tell me what is wrong with it.</p>
  
  <pre><code>private void JumpController () {
      if (Input.GetAxis("Jump")) { // if jump switch to action
          switch (Grounded) {
          0:  // On ground;
              Jump ();
              Grounded = 1;
              break;
          1:  // Jumped once;
              Jump ();
              Grounded = 2;
              break;
          2:  // Jumped twice;
              Debug.print ("Grounded = 2");
              break;
          default: break; 
          }
      }
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/e0FmN.png" rel="nofollow">An Image showing the errors</a></p>