Ejemplo n.º 1
0
    public bool GetHasTriggerBox(DIRECTION side)
    {
        switch (side)
        {
        case DIRECTION.LEFT: return(leftDoor.GetHasTriggerBox());

        case DIRECTION.RIGHT:
            return(rightDoor.GetHasTriggerBox());

        case DIRECTION.UP:
            return(upDoor.GetHasTriggerBox());

        case DIRECTION.DOWN:
            return(downDoor.GetHasTriggerBox());
        }
        return(false);
    }