void Start()
 {
     Player          = GameObject.FindWithTag("Player").transform;
     buildingSpawner = GetComponentInChildren <SpawnBuildings> ();
     buildingSpawner.buildingCount = buildingCount;
     SpawnGrid();
     currentChunk = Vector3.zero;
 }
    int shopID; //Used to generate upgrade shop

    void Awake()
    {
        if (buildingSpawnerRef == null)
        {
            buildingSpawnerRef = this;
        }
        else if (buildingSpawnerRef != this)
        {
            Destroy(gameObject);
        }
    }