public EnemyDataModel GetTarget(int id) { EnemyDataModel target = null; _enemyById.TryGetValue(id, out target); return(target); }
public void AddEnemy(EnemyDataModel enemyData) { _enemyById[enemyData.Id] = enemyData; EnemyAddedSignal.Dispatch(enemyData.Id); NextTargetId++; }