add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -132,6 +132,7 @@ public class explosiveBarrel : MonoBehaviour
int colorID;
private void InitializeAudioElements ()
{
if (explosionSound != null) {
@@ -174,12 +175,14 @@ public class explosiveBarrel : MonoBehaviour
currentMaterial = rendererParts [i];
if (currentMaterial.HasProperty (colorID)) {
Color alpha = currentMaterial.color;
Color alpha = currentMaterial.GetColor (colorID);
alpha.a -= Time.deltaTime / 5;
currentMaterial.color = alpha;
currentMaterial.SetColor (colorID, alpha);
//once the alpha is 0, remove the gameObject
if (currentMaterial.color.a > 0) {
if (alpha.a > 0) {
allPiecesFaded = false;
}
}