using UnityEngine; using System.Collections; public class ElevatorLockedPredicate : Predicate { public ElevatorController elevator; public bool locked; protected override bool CheckInternal () { locked = elevator.state == ElevatorState.Moving; return locked; } protected override bool CheckInternal (object param) { return CheckInternal(); } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }