public void UpdateWeaponAmmo(IState state, string propertyPath, ArrayIndices arrayIndices) { int index = arrayIndices[0]; IPlayerState s = (IPlayerState)state; _playerWeapons.InitAmmo(index, s.Weapons[index].CurrentAmmo, s.Weapons[index].TotalAmmo); }