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