Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

"The regerenced script on the Behavior is missing!"

$
0
0
I have no idea what it's talking about, I don't see anything wrong with my code. using UnityEngine; using System.Collections; public class ENAI : MonoBehaviour { // Use this for initialization void Start () { InvokeRepeating("SpawnEnemy",1,1); } // Update is called once per frame void SpawnEnemy () { int rndizer = Random.Range(1, 51); if (rndizer == 1 ) { Rigidbody clone; clone = Instantiate (GameObject.Find ("Enemy"), transform.position, transform.rotation) as Rigidbody; clone.AddForce (Vector3.forward / 40); } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>