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