I am using the free version of unity for the mac, and I'm currently using the FPS tutorial. My problem is that when I try to use this script:
var explosion : GameObject;
function OnCollisionEnter (collision : Collision) {
var contact : ContactPoint = collision.contacts[0];
var rotation = Quaternion.FromToRotation(Vector3.up, contact.normal);
var instantiatedexplosion : GameObject = Instantiate(explosion, contact.point, rotation);
Destroy(GameObject); }
I get the console message that I used for the title of the question:
No appropriate version of 'UnityEngine.Object.Destroy' for the argument list '(System.Type)' was found
I am still very green in regards to game design (I'm just now learning anything about scripting) so any advice is welcome.