/*
* authors: ryan lin
* date: 11/8/2024
* description: the lift door controller
*/
using UnityEngine;
/// <summary>
/// the lift door controller
/// </summary>
public class LiftDoorController : CommonInteractable
{
/// the door that is being controlled
[SerializeField] private Door door;
/// the lift controller that is being referenced
[SerializeField] private LiftController liftController;
/// set the interaction prompt
private void Awake()
interactionPrompt = "Press [E] to call the lift";
}
/// to call the open door function
public override void Interact()
if (!door.opening && !liftController.moving) StartCoroutine(door.OpenDoor());