I thought this was simple I got this line from the unity API
Destroy (gameObject, 5);
and I declared the varable at the top like this.
var gameObject:GameObject;
but I am getting this error.
Assets/Destory.js(20,10): BCE0004: Ambiguous reference ‘gameObject’: Destory.gameObject, UnityEngine.Component.gameObject.
What am I doing wrong?