Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
怎么实现类似植物大战僵尸,敌人自动找我的兵,然后打我持续扣血的效果? 目前我只实现了移动,可是敌人移动到了我的防御塔上就和我防御塔重叠了,而且还是在播放移动的动画,怎么搞一个碰到指定单位然后停止移动自动攻击的效果。
研究一下官方的单线塔防模板?我记得里面有固定单位和移动单位的逻辑