public Sprite GetSprite(string type) { switch (type) { case "타겟솔로": return(targetSolo); case "타겟멀티": return(targetMulti); case "기절": return(stun); case "출혈": return(blood); case "독": return(poison); case "속성": return(ele); default: CodeBox.PrintError("ImageData - GetSprite () 유형 없음"); return(null); } }
public Sprite GetSprite(SkillType type) { switch (type) { case SkillType.NONE: return(skillIcon); case SkillType.COMMON: return(skillIcon); case SkillType.DAM: return(skillIcon); case SkillType.SHD: return(skillIcon); case SkillType.BUF: return(skillIcon); case SkillType.DBUF: return(skillIcon); case SkillType.SUPPOSDAM: return(skillIcon); default: CodeBox.PrintError("ImageData - GetSprite_icon () 유형 없음"); return(null); } }