public void MoveSurvivorBack(Survivor_AI sAI) { sAI.GetSurvivor().MoveTo(sAI.GetCurrDefensePoint().transform.position); sAI.mvmtTracker = Moving.NOT_MOVING_ON_ASTAR; SearchingForLoot = false; Invoke("SearchForLoot", 20.0f); }
public override TASK_RETURN_STATUS Run(Survivor_AI sAI) { //TASK_RETURN_STATUS output = TASK_RETURN_STATUS.FAILED; //if(sAI.transform.position != sAI.GetCurrDefensePoint().transform.position) //{ sAI.GetSurvivor().MoveTo(sAI.GetCurrDefensePoint().transform.position); // } //else //{ //output = TASK_RETURN_STATUS.SUCCEED; //} return(TASK_RETURN_STATUS.SUCCEED); }