Setting position the an object...

Hi, I’m totally new to Unity and I’m developing a game as a college project…

My game consists of a paddle and dropping several balls,
The game contains three phases,and must have a score…

![alt text][1]

[1]: MyGame now

I have to make a spawn system, several balls which fall into various different positions and amount according to the phase you’re… The only thing I could do is it appears in the same position of the racket, I can not do the rest … Can you help me? ^ _ ^

This is my Code Spwan

using UnityEngine; using
System.Collections;

public class spawnBall : MonoBehaviour
{

public GameObject ball;

// Use this for initialization void
Start () {
StartCoroutine(BallSpwan()); }

IEnumerator BallSpwan(){
while(true){ Instantiate(ball,
GameObject.Find(“Raquete”).transform.position,
Quaternion.identity); yield return
new WaitForSeconds(3f); } } }

My mistake, I didn’t realize you were trying to spawn a ball on the racquet itself. You don’t need a while(true) inside this coroutine. You should store a reference to your racquet object rather than trying to “find” it each time.

// assign the racquet object in the inspector
public GameObject racquet;

IEnumerator BallSpawn() {
GameObject.Instantiate(ball, racquet.transform.position, Quaternion.identity);
yield return new WaitForSeconds(3);
StartCoroutine( BallSpawn() );
yield break;
}