﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameController : MonoBehaviour
{
    public GameObject Balls;
    public Vector2 ballValue;
    private void BallWaves()
    {
        Vector2 spawnPosition = new Vector2(Random.Range(-ballValue.x, ballValue.x), ballValue.y);
        Quaternion spawnRotion = Quaternion.identity;
        Instantiate(Balls, spawnPosition, spawnRotion);
    }

    private void Start()
    {
        BallWaves();
    }
}
