public class FlashlightSpawn : MonoBehaviour {
void Start()
{
for (int y = 0; y < 5; y++) {
for (int x = 0; x < 5; x++) {
GameObject spawn = (GameObject)Instantiate(Resources.Load("Flashlight"));
spawn.transform.position = new Vector3(x, y, 0);
}
}
}
}
No comments:
Post a Comment