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); } } }