Exception Fix with bar replacement

dev-ali
Ali Sharoz 2 days ago
parent ae3e0da2f2
commit b6e207ab90

@ -189187,7 +189187,7 @@ PrefabInstance:
objectReference: {fileID: 769297780}
- target: {fileID: 450773179923285749, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_SizeDelta.x
value: 646.3816
value: 646
objectReference: {fileID: 0}
- target: {fileID: 450773179923285749, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_SizeDelta.y
@ -189195,7 +189195,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 450773179923285749, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_AnchoredPosition.x
value: -1.8093
value: 0
objectReference: {fileID: 0}
- target: {fileID: 450773179923285749, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_AnchoredPosition.y
@ -189585,6 +189585,14 @@ PrefabInstance:
propertyPath: m_fontSizeBase
value: 24
objectReference: {fileID: 0}
- target: {fileID: 3935770900129827512, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4024175640873136018, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_AnchoredPosition.y
value: -30
objectReference: {fileID: 0}
- target: {fileID: 4140814313404248684, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_Sprite
value:
@ -189840,7 +189848,7 @@ PrefabInstance:
- target: {fileID: 6070375541389759608, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_Sprite
value:
objectReference: {fileID: 21300000, guid: 7f6af9eb36f406f41bf951cce070c77e, type: 3}
objectReference: {fileID: 21300000, guid: 57a812422fae0ce429d683e33f0fc192, type: 3}
- target: {fileID: 6070375541389759608, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_FillAmount
value: 1
@ -189955,11 +189963,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 7752422252643484442, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_SizeDelta.x
value: 626.476
value: 631
objectReference: {fileID: 0}
- target: {fileID: 7752422252643484442, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_SizeDelta.y
value: 52
value: 54
objectReference: {fileID: 0}
- target: {fileID: 7752422252643484442, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_AnchoredPosition.x
@ -190000,7 +190008,7 @@ PrefabInstance:
- target: {fileID: 8253142378780720860, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_Sprite
value:
objectReference: {fileID: 21300000, guid: 9db91f41a4e121b47a50efe688fc29f8, type: 3}
objectReference: {fileID: 21300000, guid: 4ef0b84060376f54eb1dab0fa842c864, type: 3}
- target: {fileID: 8253142378780720860, guid: 2afb0c0b1e9834310869cb2f0c994844, type: 3}
propertyPath: m_FillAmount
value: 1

@ -66,8 +66,8 @@ public class MenuUI : MonoBehaviour
firePowerIncreaseButton.LevelText.text = $"LEVEL {_db.PowerIncreaseLevel.Value}";
fireRateIncreaseButton.LevelText.text = $"LEVEL {_db.FireRateDecreaseLevel.Value}";
firePowerIncreaseButton.PriceText.text = $"{_gameData.PowerNextUpgradePrice} <sprite=0>";
fireRateIncreaseButton.PriceText.text = $"{_gameData.FireNextUpgradePrice} <sprite=0>";
firePowerIncreaseButton.PriceText.text = $"{_gameData.PowerNextUpgradePrice} ";
fireRateIncreaseButton.PriceText.text = $"{_gameData.FireNextUpgradePrice} ";
CheckForDeactivatingButtons();
}

@ -34,7 +34,7 @@ public class PistolMember : SquadMember
var direction = (currentTarget.transform.position - shootPoint.transform.position).normalized;
Vector3 sideDir;
if ((_gameData.ProjectileCount - 1) / 2 == i)
{
sideDir = Vector3.zero;
@ -44,7 +44,7 @@ public class PistolMember : SquadMember
sideDir = Vector3.Lerp(-rightVector, rightVector, (i + 1f) / _gameData.ProjectileCount);
}
projectile.rb.AddForce((direction + sideDir) * projectileForce, ForceMode.VelocityChange);
projectile.enterComponent.OnEnter -= HitEnemy;
@ -60,10 +60,19 @@ public class PistolMember : SquadMember
var reload = memberClass.ReloadDuration - memberClass.ReloadDuration * (1 + EvolveLevel / 20) / 1.5f;
reloadTime = Time.time + memberClass.ReloadDuration;
ShootSound.pitch = Random.Range(0.85f, 1.15f);
ShootSound.Play();
float pitchVal = Random.Range(0.9f, 1.1f);
PlayerAfterPitchChange(pitchVal);
}
void PlayerAfterPitchChange(float val = 1f)
{
if (ShootSound != null)
{
ShootSound.pitch = val;
ShootSound.Play();
}
}
private void HitEnemy(Transform other, Transform @object)
{
if (other.CompareTag(_gameData.hittableTag))

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 510cb8760d15a27418bd45f5b2b58e58
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 4ef0b84060376f54eb1dab0fa842c864
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 57a812422fae0ce429d683e33f0fc192
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save