예제 #1
0
    public void OnPlaceableGOPickedUp(PlaceableGameObject placeableGO)
    {
        bool conditionSatisfied = condition.Evaluate(placeableGO.placeable);

        if (conditionSatisfied)
        {
            hoverZoneCollider.enabled     = true;
            isAcceptablePlaceablePickedUp = true;
        }
    }
예제 #2
0
 public bool CanBePlaced(PlaceableGameObject placeableGO)
 {
     return(condition.Evaluate(placeableGO.placeable));
 }
예제 #3
0
 public bool Evaluate(Placeable placeable)
 {
     return(!child.Evaluate(placeable));
 }