This script is hanging on the object, and when I press the button, the object disappears!
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour
{
public Transfom position;
void Update()
{
if(Input.GetKey(KeyCode.E))
{
GetComponent<Rigidbody>().position = Vector3.zero;
}
}
}