Exemple #1
0
 protected override void OnRegisterUiTarget(AllyMember _target, AllyEventHandler _handler, PartyManager _party)
 {
     base.OnRegisterUiTarget(_target, _handler, _party);
     _handler.OnAmmoChanged   += OnAmmoChanged;
     _handler.OnWeaponChanged += OnWeaponChanged;
     UpdateWeaponUiGameObjects(uiTargetHandler.MyEquippedType);
 }
Exemple #2
0
 public void CallOnDeregisterUiTarget(AllyMember _target, AllyEventHandler _eventHandler, PartyManager _party)
 {
     if (OnDeregisterUiTarget != null)
     {
         OnDeregisterUiTarget(_target, _eventHandler, _party);
     }
 }
 protected virtual void OnCheckToDeregisterUiTarget(AllyMember _target, AllyEventHandler _handler, PartyManager _party)
 {
     if (_target == currentUiTarget && bHasRegisteredTarget)
     {
         OnDeregisterUiTarget(_target, _handler);
     }
 }
Exemple #4
0
 protected override void OnDeregisterUiTarget(AllyMember _target, AllyEventHandler _handler)
 {
     base.OnDeregisterUiTarget(_target, _handler);
     _handler.OnAmmoChanged   -= OnAmmoChanged;
     _handler.OnWeaponChanged -= OnWeaponChanged;
 }
 protected virtual void OnDeregisterUiTarget(AllyMember _target, AllyEventHandler _handler)
 {
     bHasRegisteredTarget = false;
 }
 protected virtual void OnRegisterUiTarget(AllyMember _target, AllyEventHandler _handler, PartyManager _party)
 {
     currentUiTarget      = _target;
     bHasRegisteredTarget = true;
 }