Hi,
I’m keep having this problem trough I have read about it :
No appropriate version of ‘UnityEngine.Object.Instantiate’ for the argument list ‘(System.Type, UnityEngine.Vector3, UnityEngine.Quaternion)’ was found.
#pragma strict
var explosion = GameObject;
function OnCollisionEnter (collision : Collision) {
if (collision.gameObject.tag == "Player") {
var contact : ContactPoint = collision.contacts[0];
var rotation : Quaternion = Quaternion.FromToRotation(Vector3.up, contact.normal);
var instantiatedExplosion : GameObject = Instantiate (explosion, contact.point, rotation);
Destroy(gameObject);
}
}
function Start () {
}
function Update () {
}
Thaks for further help