예제 #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);
 }