Hi…
Im trying this FPS Tutorial ...(I
m noob): (Unity 3.4)
http://unity3d.com/support/resources/tutorials/fpstutorial
Well, I can`t continue ,because have this error in the Projectile.js
“No appropriate version of ‘UnityEngine.Object.Destroy’ for the argument list ‘(System.Type)’ was found”
here the 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);
}.
Any help,please ???