private void DisplayRestrictionTextAndImage(IRestriction restriction, IHasSprite restrictionSprite) { Image.gameObject.SetActive(true); Text.text = ShowLiveInfo ? restriction.GetRestrictionText() : restriction.GetRestrictionDescription(); Image.sprite = restrictionSprite.GetSprite(); }
private void DisplayRestrictionText(IRestriction restriction) { Image.gameObject.SetActive(false); Text.text = ShowLiveInfo ? restriction.GetRestrictionText() : restriction.GetRestrictionDescription(); }