public void resetDefault() { this.unit = null; this.gameObject.GetComponent <Image>().sprite = UnitSpritePool.getDefaultBench(); this.gameObject.GetComponent <Image>().color = Color.white; activateBars(false); }
public bool setUnit(Unit u) { if (this.unit == null) { unit = u; this.gameObject.GetComponent <Image>().sprite = UnitSpritePool.getSprite(unit.unit_name); this.gameObject.GetComponent <Image>().color = unit.getTierColor(); return(true); } return(false); }
private void resetDefault() { this.unit = null; cost.text = ""; this.gameObject.GetComponent <Image>().sprite = UnitSpritePool.getDefaultShop(); }
public void setUnit(Unit u) { unit = u; cost.text = u.cost.ToString(); this.gameObject.GetComponent <Image>().sprite = UnitSpritePool.getSprite(unit.unit_name); }
public void setUnit(Unit u) { unit = u; this.gameObject.GetComponent <Image>().sprite = UnitSpritePool.getSprite(unit.unit_name); this.gameObject.GetComponent <Image>().color = unit.getTierColor(); }