39 lines
766 B
C#
39 lines
766 B
C#
using Sirenix.OdinInspector;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class LevelItemUI : MonoBehaviour
|
|
{
|
|
[ReadOnly]
|
|
[SerializeField]
|
|
private Level level;
|
|
|
|
[ReadOnly]
|
|
[SerializeField]
|
|
private bool isLocked;
|
|
|
|
[SerializeField]
|
|
private TextMeshProUGUI difficultyText;
|
|
|
|
[SerializeField]
|
|
private TextMeshProUGUI nameText;
|
|
|
|
[SerializeField]
|
|
private TextMeshProUGUI descriptionText;
|
|
|
|
[SerializeField]
|
|
private Image backgroundImage;
|
|
|
|
public void Setup(Level level, bool isLocked)
|
|
{
|
|
this.level = level;
|
|
this.isLocked = isLocked;
|
|
|
|
nameText.text = level.levelName;
|
|
difficultyText.text = "0";
|
|
}
|
|
}
|