31 lines
422 B
C#
31 lines
422 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class LockPredicate : Predicate {
|
|
#region implemented abstract members of Predicate
|
|
|
|
protected override bool CheckInternal ()
|
|
{
|
|
return keyLock == null ? false : keyLock.locked;
|
|
}
|
|
|
|
protected override bool CheckInternal (object param)
|
|
{
|
|
return CheckInternal();
|
|
}
|
|
|
|
#endregion
|
|
|
|
public LockSwitch keyLock;
|
|
|
|
|
|
void Start () {
|
|
|
|
}
|
|
|
|
|
|
void Update () {
|
|
|
|
}
|
|
}
|