32 lines
627 B
C#
32 lines
627 B
C#
/*
|
|
Author: Reza
|
|
Date: 3/2/25
|
|
Description: To show letter UI when letter is picked up or dropped
|
|
*/
|
|
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
public class Letter : MonoBehaviour
|
|
{
|
|
public GameObject letterUI;
|
|
|
|
private void Start()
|
|
{
|
|
letterUI.SetActive(false);
|
|
}
|
|
|
|
public void ShowLetterUI()
|
|
{
|
|
letterUI.SetActive(true);
|
|
Debug.Log("Picked up letter - UI should show");
|
|
}
|
|
|
|
public void HideLetterUI()
|
|
{
|
|
letterUI.SetActive(false);
|
|
Debug.Log("Dropped letter - UI should hide");
|
|
}
|
|
}
|