*
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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 () {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user