public void Initialize(IMap map, Transform target, EnemyStats stats, IPathFinder pathFinder) { if (map == null) { throw new ArgumentNullException("map"); } if (target == null) { throw new ArgumentNullException("target"); } if (stats == null) { throw new ArgumentNullException("stats"); } if (pathFinder == null) { throw new ArgumentNullException("pathFinder"); } this.map = map; this.target = target; this.stats = stats; this.pathFinder = pathFinder; }
public void Initialize(EnemyStats stats) { this.stats = stats; }