Beispiel #1
0
 public void Update()
 {
     if (RangeFromTrigger > CheckRange(m_playerEntity.transform.position, this.transform.position) && !m_steamVent.GetLockStatus())
     {
         m_showText = true;
         if (CheckContextButton())
         {
             m_steamVent.ToggleStreamLock(true);
             Animation lever = GetComponentInChildren <Animation>();
             if (lever == null)
             {
                 lever.Play("pull");
             }
         }
     }
     else
     {
         m_showText = false;
     }
 }
Beispiel #2
0
 public void Update()
 {
     if (m_TriggerEntered)
     {
         m_showText = true;
         if (CheckContextButton())
         {
             m_steamVent.ToggleStreamLock(true);
             Animation lever = GetComponentInChildren <Animation>();
             if (lever == null)
             {
                 lever.Play("pull");
             }
         }
     }
     else
     {
         m_showText = false;
     }
 }