예제 #1
0
        public EnemyDataModel GetTarget(int id)
        {
            EnemyDataModel target = null;

            _enemyById.TryGetValue(id, out target);
            return(target);
        }
예제 #2
0
        public void AddEnemy(EnemyDataModel enemyData)
        {
            _enemyById[enemyData.Id] = enemyData;
            EnemyAddedSignal.Dispatch(enemyData.Id);

            NextTargetId++;
        }