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); }
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); }
private int levelWorld; // 1->8 public DoorInfo(TYPE_WORLD typeWorld, int levelWorld) { this.typeWorld = typeWorld; this.levelWorld = levelWorld; }
public void SetLastBossDiff(TYPE_WORLD typeBoss, int diff) { PlayerPrefs.SetInt(KEY_LAST_BOSS_DIFF + ((int)typeBoss), diff); }
public int GetLastBossDiff(TYPE_WORLD typeBoss) { return(PlayerPrefs.GetInt(KEY_LAST_BOSS_DIFF + ((int)typeBoss))); }