25 lines
650 B
C#
25 lines
650 B
C#
using BriarQueen.Framework.Managers.Levels.Data;
|
|
using BriarQueen.Framework.Managers.Player.Data;
|
|
using Cysharp.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace BriarQueen.Game.Puzzles.ChapterOne.AshwickHallow
|
|
{
|
|
public class AshwickGate : BaseItem
|
|
{
|
|
[SerializeField] private AshwickGateKeypadPuzzle _keypadPuzzle;
|
|
|
|
public override string InteractableName => "Iron Gate";
|
|
|
|
public override UniTask OnInteract(ItemDataSo item = null)
|
|
{
|
|
if (!CheckEmptyHands())
|
|
return UniTask.CompletedTask;
|
|
|
|
_keypadPuzzle?.Open();
|
|
|
|
return UniTask.CompletedTask;
|
|
}
|
|
}
|
|
}
|