public static SpriteRenderer GetNumIcon100(int num, NumType type) { SpriteRenderer result; if (num < 100) { result = ResourceManagerBase.GetNullSprite(); } else { result = GameDataUtils.GetNumIcon(num / 100, type); } return(result); }
public static SpriteRenderer GetNumIcon1(int level, NumType type) { SpriteRenderer numIcon; if (level >= 100) { int num = level % 100 % 10; numIcon = GameDataUtils.GetNumIcon(num, type); } else { numIcon = GameDataUtils.GetNumIcon(level % 10, type); } return(numIcon); }
public static SpriteRenderer GetNumIcon10(int level, NumType type) { SpriteRenderer result; if (level >= 100) { int num = level % 100 / 10; result = GameDataUtils.GetNumIcon(num, type); } else if (level >= 10 && level < 100) { result = GameDataUtils.GetNumIcon(level / 10, type); } else { result = ResourceManagerBase.GetNullSprite(); } return(result); }