官术网_书友最值得收藏!

Polling

One method to collect such information is polling. Polling consists of directly checking for the preceding information in the FixedUpdate method of our AI character. An AI character can just poll the information they are interested in from the game world, do the checks, and take action accordingly. Polling works great if there aren't too many things to check. To make this method more efficient, we may program some characters to poll the world states with different polling rates so that we do not stop polling at every frame for every character. However, as soon as the game gets bigger, polling is not enough anymore. Therefore, in more massive games with more complex AI systems, we need to deploy an event-driven method using a global messaging system.

主站蜘蛛池模板: 文化| 满城县| 襄樊市| 江北区| 登封市| 安义县| 舒兰市| 宜兴市| 禄劝| 九寨沟县| 谷城县| 娱乐| 夏邑县| 长宁区| 宁海县| 航空| 琼中| 乐陵市| 普宁市| 中超| 汤原县| 丹巴县| 安国市| 文成县| 平舆县| 剑阁县| 阜康市| 潼关县| 密云县| 公主岭市| 磐安县| 蛟河市| 偏关县| 平果县| 嘉鱼县| 泰宁县| 海宁市| 桓仁| 鞍山市| 乐昌市| 亳州市|