27 lines
706 B
C#
27 lines
706 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CaveBlocking : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
if (InventoryUIManager.Instance.FindItemInWarehouseByName("ScrollOfDarkness").Count > 0)
|
|
{
|
|
if (gameObject.GetComponent<DoorBehaviour>())
|
|
gameObject.GetComponent<DoorBehaviour>().isEnabled = true;
|
|
|
|
if (gameObject.GetComponent<AnimatedDoorBehaviour>())
|
|
gameObject.GetComponent<AnimatedDoorBehaviour>().isEnabled = true;
|
|
}
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|