Just about to do some testing with RigidBody2D and started by adding below code. What it does is that it loops, as Update(), and add an infinitive number of the GameObject. Can someone please explain why as i thought it should only execute this code once?
If I only have a print it execute only once but with the GameObject it loops.
using UnityEngine;
using System.Collections;
public class myScript : MonoBehaviour {
void Start() {
GameObject myGameObject = Resources.Load ("Ruby") as GameObject;
Instantiate (myGameObject);
}
}