using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorMechanism : MonoBehaviour { //TODO: Create 3 public variables to keep track of the opening speed, // opening height and whether the door should is open //TODO: Create 2 private variables to store the open and closed positions void Start() { //TODO: Store the current position as the "closed" position //TODO: Calculate the "open" position using the opening height } void Update() { //TODO: If the door is open, then move it to the "open" position // Otherwise, move it to the "closed" position } }