Exemple #1
0
        public static void RotateElement(Vector3Int pos, int angle)
        {
            ChainElement elem = (ChainElement)chainElements[pos.x, pos.y, pos.z];

            elem.angle = angle;
        }
Exemple #2
0
        public static int GetRotation(Vector3Int pos)
        {
            ChainElement elem = (ChainElement)chainElements[pos.x, pos.y, pos.z];

            return(elem.angle);
        }