public override void SetColor(Enums.EPanelColor color) { base.SetColor(color); switch (color) { case Enums.EPanelColor.RED: this.image.sprite = this.square; break; case Enums.EPanelColor.GREEN: this.image.sprite = this.circle; break; case Enums.EPanelColor.BLUE: this.image.sprite = this.diamond; break; } }
public PanelData(Enums.EPanelType type, Enums.EPanelColor color) { this.type = type; this.color = color; this.adjacentWallPattern = 0; }
public virtual void SetColor(Enums.EPanelColor color) { this.Color = color; }