Files
HauntedBloodlines/Assets/Scripts/Scripted Events/ExaminableItemDoAction.cs
2025-05-29 22:31:40 +03:00

26 lines
600 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using InfallibleCode;
public class ExaminableItemDoAction : MonoBehaviour
{
ExaminableItem examinableItem;
bool ActionPerformed;
private void Awake()
{
examinableItem = GetComponent<ExaminableItem>();
}
private void Update()
{
if (examinableItem.HasInteractedWithItem && !ActionPerformed)
{
GameManagerEarly.GetInstance().DoAction = true;
ActionPerformed = true;
print("Action Performed in Examinable Item");
}
}
}