title: error CS1525: Unexpected symbol `transform'
body: <p>Hi I'm making a game in Unity using C# and I want to implement the teleport on key-press mechanic but I'm having some issues with the code</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class Teleport: MonoBehaviour 
  {
      private Transform player; 
  
      void Awake()
      {
          //Find the player object and set it
          player = GameObject.FindGameObjectWithTag("Player").transform;
      }
  
      void Update()
      {
          // Checks if you click the space bar and gets you to -1, 0, 0
          if (Input.GetKeyDown(KeyCode.Space)
              transform.position = new Vector3 (-1, 0, 0);
  
      }
  }
  </code></pre>
  
  <p>I'd appreciate if you could tell me whats wrong or even improve the mechanic and make it better in any way.</p>