Пример #1
0
    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);
    }
Пример #2
0
    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);
    }
Пример #3
0
    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);
    }