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

Play Mode Logic

  • Casey Hardman

摘要

In this chapter, we’ll get ready to spawn enemies and make them move by setting up some preliminary play mode logic: the spawn point where enemies are Instantiated whenever play mode is first initiated, the leak point they’ll be pathfinding toward, and the actual path we expect them to run along to get to the leak point. In the last chapter, we set up the UpdateEnemyPath method in the Game script, which does nothing as of now, but gets called whenever towers are sold or bought. We’ll do our pathfinding there, creating a new path whenever we need one.