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