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