Пример #1
0
        public EnemyController(AbstractEnemyModel model, CollisionView view, Transform player, Rigidbody self) : base(model)
        {
            Model = model;
            View  = view;

            _moveComponent = new MoveComponent(model);
            _moveComponent.Init(self);
            _executor = new CommandExecutor(model, _moveComponent, player, self);
            _executor.Execute();
            Subscribe();
        }
Пример #2
0
 public void InitMoveComponent(Rigidbody rigidbody)
 {
     _moveComponent.Init(rigidbody);
 }