title: Unity How to limit Spawner?
body: <p>I am working on a game like 2 cars. So there will be two lines and I have used two object spawner which is going to spawn two shapes, i,e Circle and Square. So when player collides with circle score should update. And when Square falls player is supposed to avoid it by going to another lane. But what is the problem is something both the spawner spawns square simultaneously or with small gap. So player is not able to escape. Any solution for this. Well I guess it does not help much but here is my script</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class Instantiter : MonoBehaviour {
      public GameObject[] gameobject;
      public float  SpawnDelay= 3f;
      private GameObject objectkeeper;
      // Use this for initialization
      void Start () {
  
      }
  
      // Update is called once per frame
      void Update () {
          float Spawntime = SpawnDelay * Time.deltaTime; // 1 *1/60
          if (Random.value &lt; Spawntime) {
              Spawn ();
          }
      }
  
      void Spawn(){
          int number = Random.Range (0, 2);// creating random number between 0 and 1
          objectkeeper = Instantiate (gameobject [number], this.transform.position, Quaternion.identity) as GameObject;
          objectkeeper.transform.parent = this.transform;
  
      }
  
      void OnDrawGizmos(){
          Gizmos.DrawWireSphere (this.transform.position, 0.5f);
      }
  
  
  }
  </code></pre>
  
  <p>Thank you for your time and consideration</p>