Пример #1
0
 public CollisionHandler(HandlerDataGroup _dataGroup, OTGHitColliderController _hitCollider, OTGHurtColliderController[] _hurtColliders, OTGTargetingController _targetingController, OTGGlobalCombatConfig _globalConfig)
 {
     InitHandler(_dataGroup, _hitCollider, _globalConfig);
     InitHurtColliderLookup(_hurtColliders);
     TargetingController = _targetingController;
     TargetingController.InitController(_globalConfig.MaxScanElemements);
 }
Пример #2
0
 private void InitHandler(HandlerDataGroup _dataGroup, OTGHitColliderController _hitCollider, OTGGlobalCombatConfig _globalConfig)
 {
     m_handlerData = _dataGroup.CollisionHandlerData;
     HitCollider   = _hitCollider;
     ScanResults   = new Collider[_globalConfig.MaxScanElemements];
 }