title: Lock Position On Multiple Trigger Enters
body: <p>Titles sounds confusing but to make it simple... I have two triggers, or &quot;pressure plates&quot; if you will, and they are connected to one door. When both objects are in the trigger, the door raises twice as high. That's the issue, I need the door's transform to stay the same in the case that either one or both triggers are active, but still reset to original position when neither are active. [code for trigger provided below]</p>
  <p>If anyone has an idea on this, please let me know.</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PadTriggerPlayer1 : MonoBehaviour
  {
     public GameObject door;
     public float Height = 0f;
     public bool doorOpened = false;
  
     void OnTriggerEnter(Collider col)
     {
         if(col.gameObject.tag == &quot;Player1&quot;)
         {
             door.transform.position += new Vector3(0f, Height, 0f);
             doorOpened = true;
         }
     }
  
     void OnTriggerExit(Collider col)
     {
         if(col.gameObject.tag == &quot;Player1&quot;)
         {
             door.transform.position += new Vector3(0f, -Height, 0f);
             doorOpened = false;
         }
     }
  }
  </code></pre>