Exemplo n.º 1
0
    public override NodeStates Process(BlackboardBase bb)
    {
        if (debug)
        {
            Debug.Log($"PATROL");
        }

        RobotBlackboard robotBB = bb as RobotBlackboard;

        if (!robotBB.GetPatrolReachedPoint())
        {
            return(NodeStates.Running);
        }
        else
        {
            robotBB.SetPatrolReachedPoint(false);
            return(NodeStates.Success);
        }
    }
 public void SetPatrolPointCheck(bool reachedPoint)
 {
     bt.SetPatrolReachedPoint(reachedPatrolPointToggle);
 }