void Start() { dataManager = GameManager.instance.GetUserDataManager(); skinManager = GameManager.instance.GetSkinManager(); curInd = dataManager.GetCurUser().playerSkinInd; SwitchCharacter(); }
void DisplayPlayableLevels() { foreach (var level in levels) { if (dataManager.GetCurUser().levelUnlocked >= level.GetLevelNumber()) { level.SetLevelPlayable(true); } else { level.SetLevelPlayable(false); } } }
public void SetCurCheckPoint(int _ind) { if (progressOnly) { if (_ind > curCheckPoint) { curCheckPoint = _ind; } } else { curCheckPoint = _ind; } if (saveProgressToDisc) { dataManager.GetCurUser().curCheckPoint = (curCheckPoint); dataManager.SaveLevelName(sceneTransData.GetCurLevelName()); } }
protected override void LoadDefaultData() { if (setData) { curData = Data; } else { if (userMode == UserMode.CurUser) { curUser = dataManager.GetCurUser(); } else if (userMode == UserMode.Override) { curUser = dataManager.GetUser(user.indexValue); } curData = skinManager.playerSkins[curUser.playerSkinInd]; } SetData(curData); }