| 102 | } |
| 103 | |
| 104 | void AWeapon::SetHUDAmmo() |
| 105 | { |
| 106 | BlasterOwnerCharacter = BlasterOwnerCharacter == nullptr ? Cast<ABlasterCharacter>(GetOwner()) : BlasterOwnerCharacter; |
| 107 | if (BlasterOwnerCharacter) |
| 108 | { |
| 109 | BlasterOwnerController = BlasterOwnerController == nullptr ? Cast<ABlasterPlayerController>(BlasterOwnerCharacter->Controller) : BlasterOwnerController; |
| 110 | if (BlasterOwnerController) |
| 111 | { |
| 112 | BlasterOwnerController->SetHUDWeaponAmmo(Ammo); |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void AWeapon::SpendRound() |
| 118 | { |
no test coverage detected