Errors for a good script?!

  1. class Sprint {
    70. var maxForwardSpeed : float = 20.0;
    71. var maxSidewaysSpeed : float = 20.0;
    72. var maxBackwardsSpeed : float = 10.0;
    73. var maxSprintSpeed : float = 30.0;
    74. //The sprint script is being activated by the left shift button
    75. if (Input.GetButtonDown(“Shift”))
    76. {
    77. maxForwardSpeed = maxSprintSpeed ;
    78. maxSidewaysSpeed = maxSprintSpeed ;
    79. maxBackwardSpeed = 0 ;
    90. }
    91. //If the input gets button up the speed goes normal again
    92. if (Input.GetButtonUp(“Shift”))
    93. {
    94. maxForwardSpeed = 20 ;
    95. maxSidewaysSpeed = 20 ;
    96. maxBackwardsSpeed = 10 ;
    97. }
    98. }
    My problem is that unity give me this errors (and its really really annoying because the script give me no errors in monodevelop.
    I added the number of the lines for the errors

Ideas and suggestion will be apreciated Ty very much in advance

It looks like you are putting if statements in the class declaration, not in any functions! Are you sure this is what you want to do?