public void OnEnemyPop(int idx, int sid) { EnemyPopParam enemyPopParam = GetEnemyPopParam(idx); if (enemyPopParam != null) { enemyPopParam.count++; Logd("OnEnemyPop. idx={0},sid={1},count={2}", idx, sid, enemyPopParam.count); if (sid > nowEnemyId) { nowEnemyId = sid; } } }
private void InitEnemyPopParam(uint map_id) { List <FieldMapTable.EnemyPopTableData> enemyPopList = Singleton <FieldMapTable> .I.GetEnemyPopList(map_id); if (enemyPopList != null && enemyPopList.Count > 0) { nowEnemyId = 500000; enemyPopParams = new List <EnemyPopParam>(); int i = 0; for (int count = enemyPopList.Count; i < count; i++) { EnemyPopParam enemyPopParam = new EnemyPopParam(); enemyPopParam.data = enemyPopList[i]; enemyPopParams.Insert(i, enemyPopParam); } } }