56 lines
1.4 KiB
C#
56 lines
1.4 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
public class ItemToInteractTrigger : MonoBehaviour
|
|
{
|
|
//[SerializeField] private ExaminableItem examinableItem;
|
|
//private bool UpdateThisItem;
|
|
|
|
//void Start()
|
|
//{
|
|
// //scriptToEnable.enabled = false;
|
|
// examinableItem = GetComponentInChildren<ExaminableItem>();
|
|
//}
|
|
|
|
//// Update is called once per frame
|
|
//void Update()
|
|
//{
|
|
// if (UpdateThisItem)
|
|
// {
|
|
// examinableItem.UpdateInteractableItem();
|
|
// print("IsRunningUpdateInteractableItem()");
|
|
// }
|
|
//}
|
|
|
|
//private void OnTriggerStay(Collider col)
|
|
//{
|
|
// if (col.gameObject.tag == "Player")
|
|
// {
|
|
// if (ExaminableItemData.GetInstance().CanInteractWithInteractableItem)
|
|
// {
|
|
// if (Input.GetKeyDown(KeyCode.E) || Input.GetKeyDown(KeyCode.JoystickButton0)/*A button*/)
|
|
// {
|
|
// examinableItem.examineItem.DisplayItem3D();
|
|
// UpdateThisItem = true;
|
|
// print("Fuck my anal passage");
|
|
// }
|
|
// }
|
|
// else
|
|
// {
|
|
// UpdateThisItem = false;
|
|
// }
|
|
// }
|
|
//}
|
|
|
|
//private void OnTriggerExit(Collider col)
|
|
//{
|
|
// if (col.gameObject.tag == "Player")
|
|
// {
|
|
// UpdateThisItem = false;
|
|
// }
|
|
//}
|
|
}
|
|
|