game(scripts): standardise Letter
This commit is contained in:
parent
5b8b7a6a1e
commit
cfbbb80549
1 changed files with 7 additions and 10 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue