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,21 @@
using UnityEngine;
namespace EscapeRoomEngine.Engine.Runtime.UI
{
public abstract class PersistedUI<T> : MonoBehaviour
{
public string key;
public T defaultValue;
public T Value { get; protected set; }
protected virtual void Start()
{
Value = RetrieveValue();
DisplayValue();
}
protected abstract T RetrieveValue();
protected abstract void DisplayValue();
}
}