28 lines
420 B
C#
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;
|
|
}
|
|
}
|
|
|