错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Enemy Logic

  • Casey Hardman

摘要

Pathfinding is happening automatically to generate our GroundEnemy path around towers, we have arrow towers, and we have our base Enemy script class to build our GroundEnemy and FlyingEnemy scripts off of. Let’s get to making our Play Button initiate the spawning of enemies, then implement our two enemy types. We’ll have our GroundEnemy following the path generated by the pathfinding, while our FlyingEnemy simply navigates from the spawn point to the leak point.