Пример #1
0
    public static string GetNameDoor(TYPE_WORLD typeWorld, int levelWorld)
    {
        string s = "" + levelWorld;

        if (typeWorld == TYPE_WORLD.AR)
        {
            s = s + "B";
        }
        else if (typeWorld == TYPE_WORLD.GV)
        {
            s = s + "A";
        }
        else if (typeWorld == TYPE_WORLD.SIK)
        {
            s = s + "C";
        }
        return(s);
    }
Пример #2
0
    public static int GetValueDoor(TYPE_WORLD typeWorld, int levelWorld)
    {
        int v = 0;

        if (typeWorld == TYPE_WORLD.AR)
        {
            v = 10;
        }
        else if (typeWorld == TYPE_WORLD.GV)
        {
            v = 0;
        }
        else if (typeWorld == TYPE_WORLD.SIK)
        {
            v = 20;
        }
        v += levelWorld;
        return(v);
    }
Пример #3
0
    private int levelWorld;       // 1->8

    public DoorInfo(TYPE_WORLD typeWorld, int levelWorld)
    {
        this.typeWorld  = typeWorld;
        this.levelWorld = levelWorld;
    }
Пример #4
0
 public void SetLastBossDiff(TYPE_WORLD typeBoss, int diff)
 {
     PlayerPrefs.SetInt(KEY_LAST_BOSS_DIFF + ((int)typeBoss), diff);
 }
Пример #5
0
 public int GetLastBossDiff(TYPE_WORLD typeBoss)
 {
     return(PlayerPrefs.GetInt(KEY_LAST_BOSS_DIFF + ((int)typeBoss)));
 }