increase room diversity, improve ui

This commit is contained in:
2023-05-13 13:06:08 +02:00
parent ec094f410f
commit 033989a85e
21 changed files with 736 additions and 83 deletions

View File

@@ -0,0 +1,22 @@
using NaughtyAttributes;
using UnityEngine;
using UnityEngine.UI;
namespace EscapeRoomEngine.Engine.Runtime.UI.Elements
{
/// <summary>
/// This component is responsible to change the icon of the pause button depending on the game state.
/// </summary>
public class PauseButton : MonoBehaviour
{
[BoxGroup("Internal")] [SerializeField]
private Image icon;
[BoxGroup("Internal")] [SerializeField]
private Sprite pauseIcon, resumeIcon;
public bool Paused
{
set => icon.sprite = value ? resumeIcon : pauseIcon;
}
}
}