28070人加入学习
(125人评价)
如何制作塔防游戏(基于Unity5.5)
价格 免费

更新敌人集合可以使用如下代码 只需要一次循环

void UpdateEnemys() {
        List<GameObject> newEnemys = new List<GameObject>();
        for (int index = 0; index < enemys.Count; index++) {
            if (enemys[index] != null) {
                newEnemys.Add(enemys[index]);
            }
        }
        enemys = newEnemys;
    }

[展开全文]

授课教师

加我的QQ问问题:804632564

课程特色

图文(2)
视频(52)