示例#1
0
        public Sprite LoadSprite()
        {
            Sprite[] atlas = Resources.LoadAll <Sprite>($"Pieces/{edition}");
            string   name  = "" + color.GetLetter() + type.GetLetter();

            return(atlas.Single(s => s.name == name));
        }
示例#2
0
 public override string ToString()
 {
     return(piece.GetLetter() + " " + source + "-" + destination);
 }