コード例 #1
0
        public virtual void SetPosition(Grid3D parent, int x, int y)
        {
            this.ParentGrid = parent;
            float   scale = parent.GetGridSize();
            Vector3 pos   = new Vector3(scale * x, 0, scale * y);

            this.Translation = pos;
            this.X           = x;
            this.Y           = y;
        }