Scriptum/Assets/Scripts/REFACTORING/Models/Chest/ChestWrapper.cs

28 lines
420 B
C#
Raw Normal View History

2022-12-21 17:12:47 +01:00
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;
2023-01-07 20:21:00 +01:00
[SerializeField]
public bool IsLocked = false;
public void Unlock()
{
IsLocked = false;
}
public void Lock()
{
IsLocked = true;
}
2022-12-21 17:12:47 +01:00
}