day transition is now working

This commit is contained in:
dhain 2022-06-09 16:49:15 +02:00
parent a53857c4d2
commit 7b286bcfd9
13 changed files with 390 additions and 388 deletions

View file

@ -3,6 +3,20 @@ using TMPro;
using UnityEngine;
public class HoverManager : MonoBehaviour {
#region Singleton
public static HoverManager instance;
private void Awake() {
if (instance != null) {
Debug.LogWarning("More than one instance of HoverManager found");
}
instance = this;
}
#endregion
public TextMeshProUGUI descriptionText;
public RectTransform descriptionHoverBackground;
@ -41,7 +55,7 @@ public class HoverManager : MonoBehaviour {
/**
* Hide the description Text
*/
private void HideDescription() {
public void HideDescription() {
descriptionText.text = default;
descriptionHoverBackground.gameObject.SetActive(false);
}