public Material GetMaterial(BoardHighlightType type)
        {
            switch (type)
            {
            case BoardHighlightType.Selected:
                return(_select);

            case BoardHighlightType.Move:
                return(_move);

            case BoardHighlightType.Attack:
                return(_attack);

            default:
                throw new ArgumentOutOfRangeException(nameof(type), type, null);
            }
        }
Пример #2
0
 public HighlightData(BoardHighlightType type, Vector2 position)
 {
     Type     = type;
     Position = position;
 }