Ejemplo n.º 1
0
    public override void ObjectExitTrigger(InteractableElement ie, Object o)
    {
        FootInteruptor fi = ie as FootInteruptor;

        if (fi.CurrentState() == FootInteruptor.eInteruptorState.Down) // if not already released
        {
            i--;
        }
    }
Ejemplo n.º 2
0
 public override void ObjectEnterTrigger(InteractableElement ie, Object o)
 {
     if (ie is FootInteruptor)
     {
         FootInteruptor fi = ie as FootInteruptor;
         if (fi.CurrentState() == FootInteruptor.eInteruptorState.Up) // if not already pressed
         {
             switchCount++;
         }
     }
 }