コード例 #1
0
 public UnitController(UnitModel unitModel,
                       UnitView unitView,
                       UnitSide unitSide,
                       UnitWeapon unitWeapon,
                       SignalBus signalBus,
                       GameSettings gameSettings,
                       HitEffect hitEffect)
 {
     _unitModel    = unitModel;
     _unitView     = unitView;
     _unitSide     = unitSide;
     _unitWeapon   = unitWeapon;
     _signalBus    = signalBus;
     _gameSettings = gameSettings;
     _hitEffect    = hitEffect;
     _hitEffect.transform.parent = _unitView.transform;
     _unitModel.Configure();
     _unitView.Configure(_unitModel);
     _unitWeapon.Configure(unitView, unitSide, _unitModel.AttackSpeed);
 }
コード例 #2
0
 public void Configure(UnitModel unitModel)
 {
     _unitModel = unitModel;
     _unitModel.Configure();
     _unitView.Configure(_unitModel);
 }