Refactor scene management, Enable wasd movement, Add level menu
This commit is contained in:
38
Assets/Scripts/UI/LevelItemUI.cs
Normal file
38
Assets/Scripts/UI/LevelItemUI.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user