Scriptum/Assets/Scripts/REFACTORING/Models/Chest/ChestWrapper.cs
2023-01-07 20:21:00 +01:00

28 lines
420 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
[Serializable]
class ChestWrapper : MonoBehaviour
{
[SerializeField]
public Chest Chest;
[SerializeField]
public bool IsLocked = false;
public void Unlock()
{
IsLocked = false;
}
public void Lock()
{
IsLocked = true;
}
}