This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
project-undercover/Project Undercover/Assets/Scripts/UI/InteractionItemController.cs

23 lines
362 B
C#

using UnityEngine;
using UnityEngine.UI;
class InteractionItemController : MonoBehaviour
{
[SerializeField]
private Text label;
[SerializeField]
private Image background;
public void SetLabelText(string text)
{
label.text = text;
}
public void SetSpyColor()
{
background.color = Color.yellow;
}
}