Advertisement
Guest User

Untitled

a guest
May 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. using System.Collections;
  4.  
  5. public class spawner : MonoBehaviour;
  6.  
  7. public Transform whatToSpawn;
  8.  
  9. // Use this for initialization
  10.  
  11. void Start () {
  12.  
  13. }
  14.  
  15. // Update is called once per frame
  16.  
  17. void Update() {
  18.  
  19. if (true) {
  20.  
  21. Instantiate(whatToSpawn,transform,position,transform.rotation);
  22.  
  23. }
  24.  
  25.  
  26.      }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement