/* * authors: ryan lin * date: 11/8/2024 * description: the lift door controller */ using UnityEngine; /// /// the lift door controller /// 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; /// /// to call the open door function /// public override void Interact() { if (!door.opening && !liftController.moving) StartCoroutine(door.OpenDoor()); } }