title: Unity gives "Type or namespace definition, or end-of-file expected" error
body: <p>Getting two errors here, but I'm pretty sure they're dependent upon each other:</p>
  <blockquote>
  <p>Assets\Course Library\Scripts\PlayerController.cs(9,16): error CS1513: <code>}</code> expected</p>
  <p>Assets\Course Library\Scripts\PlayerController.cs(42,1): error CS1022: Type or namespace definition, or end-of-file expected</p>
  </blockquote>
  <p>It doesn't really make any sense to me. I'm certain I formatted it correctly, and that the syntax is correct. Anytime I make any changes to the line of code where the errors are, it only throws more errors at me.</p>
  <p>I thought there was a possibility that there was only one mistake somewhere in the code that causing a compound reaction, but I couldn't find anything wrong.</p>
  <p>Could someone with more knowledge about Unity please explain to me what it is I'm doing wrong?</p>
  <p>Code:</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PlayerController : MonoBehaviour
  {
  
      void Start()
      {
          public float tank = GameObject.Find(&quot;tank&quot;).transform.localPosition.x;
      }
  
      public float horizontalInput;
      public float speed = 5;
      public float xRange = 20;
      public float zRange = 30;
      public float zRange2 = -8;
      public float turnSpeed = 20;
      public float forwardInput;
  
      void Update()
      {
          if (transform.position.x &lt; -xRange){
              transform.position = new Vector3(-xRange, transform.position.y, transform.position.z);
          }
          if (transform.position.x &gt; xRange){
              transform.position = new Vector3(xRange, transform.position.y, transform.position.z);
          }
          if (transform.position.z &lt; zRange2){
              transform.position = new Vector3(transform.position.x, transform.position.y, zRange2);
          }
          if (transform.position.z &gt; zRange){
              transform.position = new Vector3(transform.position.x, transform.position.y, zRange);
          }
      
          horizontalInput = Input.GetAxis(&quot;Horizontal&quot;);
          forwardInput = Input.GetAxis(&quot;Vertical&quot;);
      
          transform.Translate(Vector3.forward * Time.deltaTime * speed * forwardInput);
          transform.Rotate(Vector3.up, turnSpeed * horizontalInput * Time.deltaTime);
      }
  }
  </code></pre>