private void Awake() { ins = this; transform.position = targetPos; MainMenuMgr.InitialLoading(); settingMenu = Instantiate(Resources.Load <SettingMenu>("Prefab/SettingMenu")); levelSelectables = FindObjectsOfType <LevelSelectable>(); }
public void ApplySetting(LevelSetting setting) { requireUnlockLevel = setting.RequireUnlockedLevel; disabled = !LevelSelectMgr.LevelHasUnlock(requireUnlockLevel); ApplyStyle(); }
public override void Submit() { if (requireUnlockLevel < 0 || LevelSelectMgr.LevelHasUnlock(requireUnlockLevel)) LevelSelectMgr.LoadLevel(ID); }