Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var node1 : Transform;
- var block : GameObject;
- var spawning : boolean = true;
- function Start () {
- spawnBlock();
- }
- function Update () {
- }
- function spawnBlock () {
- while(spawning) {
- yield WaitForSeconds(1);
- Instantiate(block,node1.transform.position,node1.transform.rotation);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement