Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class spawn_cloud : MonoBehaviour {
  5.  
  6.     // Use this for initialization
  7.     void Start () {
  8.         InvokeRepeating ("SpawnCloud", 0, 10);
  9.     }
  10.  
  11.     void SpawnCloud() {
  12.         Object cloud = Resources.Load ("Prefabs/Cloud", typeof(GameObject));
  13.         Instantiate (cloud);
  14.     }
  15.    
  16.     // Update is called once per frame
  17.     void Update () {
  18.    
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement