예제 #1
0
        // Use this for initialization
        virtual public void Start()
        {
            calc_y();

            GameObject last = pool.take(getArgs());
            float      x    = -size.width() / 2f;

            last = Instantiate(last);

            x += bx;
            do
            {
                GameObject g = pool.take(getArgs());
                g = Instantiate(g);
                print("instance......... " + x + " " + (_y + offset.y));
                g.transform.position = new Vector3(x, _y + offset.y);
                x += offset.x;
                list.Add(g);
            }while (x < size.width() / 2f || list.Count < min_count);
            apply_last(last);
            repeat = list.Count;
        }