skeletons will attack the player

This commit is contained in:
GameHerobrine 2024-03-24 02:48:40 +03:00
parent 3b15c26b0c
commit db5ad749d2
6 changed files with 163 additions and 4 deletions

View file

@ -24,6 +24,12 @@ class EntityAI
$this->mobController = new MobController($entity);
}
public function canSee(Entity $entity){
//TODO caches
return $this->entity->canSee($entity);
}
/**
* Add a task for entity
* @param TaskBase $task