| | |
| | | int gold = waveData.Config.b_coin * enemyData.coin_rate; |
| | | |
| | | newAgent.SetAgentData(hp, speed, gold); |
| | | // todo 这里先填1级后面需要修改 |
| | | newAgent.healthBar.SetHealthLevel(1); |
| | | // 加入Manager统一管理. |
| | | AgentInsManager.instance.addAgent(newAgent); |
| | | |
| | |
| | | doubleAgent.Initialize(); |
| | | |
| | | doubleAgent.SetAgentData(hp, speed, gold); |
| | | doubleAgent.healthBar.SetHealthLevel(1); |
| | | AgentInsManager.instance.addAgent(doubleAgent); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 从Tower的AttributeId获取到怪物的数据 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | protected List<int> GetMonsterDataFromAttributeId(int id) |
| | | /// 从Tower的AttributeId获取到怪物的数据 |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | protected List<int> GetMonsterDataFromAttributeId(int id) |
| | | { |
| | | geminfo tgem = new geminfo(); |
| | | if (JsonDataCenter.gemInfoDic.TryGetValue(id, out tgem)) |