コード例 #1
0
        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;
 }