private void Awake() { EventsManager.TriggerEvent("SuscribeToUpdateManager", this); _view = new LaserEnemyView(); _model = new LaserEnemyModel(_view, transform, FindObjectOfType <NodesList>().GetNodes(), speed, patrolWaypoints, patrolStateLoop, FindObjectOfType <Player>().transform, distanceToPlayer, laserAttack, castPoint, this); _controller = new LaserEnemyController(_model); }
public LaserEnemyController(LaserEnemyModel model) { _model = model; }