26 lines
600 B
C#
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");
|
|
}
|
|
}
|
|
}
|