Esempio n. 1
0
 private void Awake()
 {
     IsWhite      = isWhite;
     image.sprite = pieceType.GetImage();
     if (isWhite)
     {
         image.color = new Color(0.7f, 0.8f, 0.3f);
     }
     else
     {
         image.color = new Color(0.3f, 0.3f, 1f);
     }
 }
Esempio n. 2
0
 public void UpgradeTo(PieceType pieceType)
 {
     this.pieceType = pieceType.GetUpgrade();
     image.sprite   = pieceType.GetImage();
 }
Esempio n. 3
0
 public void Upgrade()
 {
     pieceType    = pieceType.GetUpgrade();
     image.sprite = pieceType.GetImage();
 }