Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Problem with simple JavaScript, No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(UnityEngine.GameObject, UnityEngine.Vector3)' was found.

$
0
0
Problem with this script, am I just really stupid because I can't find the problem. #pragma strict var Health : int; var explosion : GameObject; var target : Transform; function DeductPoints (Damage : int) { Health -= Damage; } function Update () { if (Health <= 0) { Destroy(gameObject); Instantiate(explosion, target.position); } }

Viewing all articles
Browse latest Browse all 1875

Trending Articles