Пример #1
0
        Tile GetTileByPosition(Vector2Int position)
        {
            if (!BaseExtensions.IsPointBelongsSite(position, new Rect(Vector2Int.zero, boardSize)))
            {
                return(null);
            }

            return(Tiles[position.x, position.y]);
        }
        public HSV_Color(float H, float S, float V)
        {
            this.H = H;
            this.S = S;
            this.V = V;

            color = BaseExtensions.ColorFromHSV(H, S, V);
            A     = color.A;
            R     = color.R;
            G     = color.G;
            B     = color.B;
        }