private void Update() { if (crateTarget.CurrentState() == FootInteruptor.eInteruptorState.Down) { crateOK = true; } }
public override void ObjectExitTrigger(InteractableElement ie, Object o) { FootInteruptor fi = ie as FootInteruptor; if (fi.CurrentState() == FootInteruptor.eInteruptorState.Down) // if not already released { i--; } }
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++; } } }