MIF_E31230902/Assets/Asset/_Main/Script/Local Storage/LevelProgress.cs

33 lines
515 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PahlawanEnergi
{
[System.Serializable]
public class LevelProgress
{
public int level;
public bool isUnlocked;
public int score;
public void Unlock()
{
isUnlocked = true;
}
public void SetScore(int value)
{
if (score >= value) return;
score = value;
}
}
}