public static string GetArousalSpriteName(int rarity) { string result = string.Empty; if (2 <= rarity) { if (6 < rarity) { rarity = 6; } result = MonsterArousalData.GetSpriteName(rarity.ToString()); } return(result); }
private void SetArousal(int arousalCount) { this.arousalUI.title.text = MonsterArousalData.GetTitle(arousalCount.ToString()); if (2 <= arousalCount) { this.arousalUI.nothing.text = string.Empty; this.arousalUI.count.gameObject.SetActive(true); this.arousalUI.count.spriteName = MonsterArousalData.GetSpriteName(arousalCount.ToString()); } else { this.SetNoneArousal(); } }
public void SetArousal(string arousal) { string spriteName = MonsterArousalData.GetSpriteName(arousal); if (!string.IsNullOrEmpty(spriteName)) { if (!this.sprite.enabled) { this.sprite.enabled = true; } this.sprite.spriteName = spriteName; } else { this.sprite.enabled = false; } }