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); } }
public void UpgradeTo(PieceType pieceType) { this.pieceType = pieceType.GetUpgrade(); image.sprite = pieceType.GetImage(); }
public void Upgrade() { pieceType = pieceType.GetUpgrade(); image.sprite = pieceType.GetImage(); }