game(scripts): standardise Letter

This commit is contained in:
Mark Joshwel 2025-02-15 00:35:27 +08:00
parent 5b8b7a6a1e
commit cfbbb80549

View file

@ -1,22 +1,19 @@
/* /*
Author: Reza * Author: Reza
Date: 3/2/25 * Date: 3/2/25
Description: To show letter UI when letter is picked up or dropped * Description: To show letter UI when the letter is picked up or dropped
*/ */
using System.Collections;
using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.UIElements;
public class Letter : MonoBehaviour public class Letter : MonoBehaviour
{ {
public GameObject letterUI; public GameObject letterUI;
public AudioClip scribble; public AudioClip scribble;
private void Start() private void Start()
{ {
letterUI.SetActive(false); letterUI.SetActive(false);
} }
public void ShowLetterUI() public void ShowLetterUI()
@ -30,4 +27,4 @@ public class Letter : MonoBehaviour
letterUI.SetActive(false); letterUI.SetActive(false);
Debug.Log("Dropped letter - UI should hide"); Debug.Log("Dropped letter - UI should hide");
} }
} }