25 lines
401 B
C#
25 lines
401 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class DoorOpenedPredicate : Predicate {
|
|
public Door door;
|
|
protected override bool CheckInternal ()
|
|
{
|
|
return door.State != DoorState.Closed;
|
|
}
|
|
protected override bool CheckInternal (object param)
|
|
{
|
|
return Check ();
|
|
}
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|