Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class Practice : MonoBehaviour {
- public float radius = 3;
- public GameObject prototype;
- public List<GameObject> r;
- public List<GameObject> Search () {
- for (int i=0; i<radius; i++) {
- GameObject created = Instantiate(prototype);
- created.transform.position =
- new Vector3(i, 0, 0) + transform.position;
- r.Add(created);
- }
- return r;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement