Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        _sites = new List <Point>();
        //_bounds = new BoundingRect(){ xmin = 0, ymin = 0, xmax = 100, ymax = 100 };
        _bounds = new BoundingRect()
        {
            xmin = -50, ymin = 0, xmax = 50, ymax = 100
        };
        _voronoi = new FortuneVoronoi();

        Debug.Log("The Bounds: " + _bounds.ToString());
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        _sites       = new List <Point>();
        _siteObjects = new List <GameObject>();
        _voronoi     = new FortuneVoronoi();
        _bounds      = new BoundingRect()
        {
            xmin = this.transform.position.x - this.transform.localScale.x / 2,
            ymin = this.transform.position.y - this.transform.localScale.y / 2,
            xmax = this.transform.position.x + this.transform.localScale.x / 2,
            ymax = this.transform.position.y + this.transform.localScale.y / 2
        };

        Debug.Log("The Bounds: " + _bounds.ToString());
    }