33 lines
515 B
C#
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;
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|