コード例 #1
0
        public List <Vector2> GetCubesPositions(int index)
        {
            FigureAsset.Item item = this.GetFigureAssetItem(index);
            List <Vector2>   list = item.GetCubesPositions();

            return(list);
        }
コード例 #2
0
        private Item GetFigureAssetItem(int index)
        {
            int rotationIndex;

            Math.DivRem(index, this.Rotations.Count, out rotationIndex);
            FigureAsset.Item item = this.Rotations[rotationIndex];
            return(item);
        }