36 lines
679 B
C#
36 lines
679 B
C#
using UnityEngine;
|
|
using TMPro;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.Localization.Components;
|
|
|
|
public class ClueItem : MonoBehaviour
|
|
{
|
|
public Image clueImageUI;
|
|
public TMP_Text categoryText;
|
|
public LocalizeStringEvent nameText;
|
|
public GameObject stateText;
|
|
|
|
[HideInInspector]
|
|
public bool used=false;
|
|
|
|
private Clue clueData;
|
|
|
|
public GameObject finished;
|
|
|
|
public void Setup(Clue clue)
|
|
{
|
|
clueData = clue;
|
|
if(used)
|
|
{
|
|
clueImageUI.color=Color.grey;
|
|
stateText.SetActive(true);
|
|
}
|
|
clueData.Display(this);
|
|
}
|
|
|
|
public Clue GetClueData()
|
|
{
|
|
return clueData;
|
|
}
|
|
}
|