title: Unity - Unexpected Symbol ";" in class, struct or interface member declaration
body: <p>having a slight problem. I am reworking a project of mine using SpriteFactory, and have used a youtube following the exact same code as his but running into the following error:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  using SpriteFactory;
  public class Running : MonoBehaviour {
  
  private SpriteFactory.Sprite;
  
  // Use this for initialization
  void Start () {
      sprite = GetComponent&lt;Sprite&gt; ();
      }
  
  // Update is called once per frame
  void Update () {
  if(Input.GetKey(KeyCode.RightArrow)) {
          Sprite.Play("Run");
          Vector3 pos = transform.position;
          pos.x += Time.deltaTime * 2;
          transform.position = pos;
          }
      else{
          sprite.Stop();
  }
  }
  }
  </code></pre>
  
  <p>Error It results in is Unexpected Symbol ";" in class, struct or interface member declaration which i know is referring to:</p>
  
  <p><code>private SpriteFactory.Sprite;</code></p>
  
  <p>but I am not even sure why? Suggestions</p>