Hopefully fixed audio issues fixed credits & title

This commit is contained in:
Melbyj1125
2022-05-05 22:39:55 -05:00
parent fe2116f7ec
commit 7f0b3d1269
14 changed files with 356 additions and 82 deletions

View File

@@ -19,7 +19,8 @@ public class Bumper : MonoBehaviour {
if(dirBump.x == 0 && dirBump.z == 0){
dirBump = new Vector3(1,.1f,1);
}
bumpNoise.Play();
if(bumpNoise != null) bumpNoise.Play();
playerMovement.GetHit(dirBump.normalized, bumpPower);
//
}

View File

@@ -34,7 +34,7 @@ public class Thunderstorm : MonoBehaviour
{
inAir = true;
}
clouds.Play();
if(clouds != null) clouds.Play();
}
private void FixedUpdate()
@@ -63,9 +63,9 @@ public class Thunderstorm : MonoBehaviour
if (hit.collider == null)
{
inAir = true;
bolt.Play();
sparks.Play();
pow.Play();
if(bolt != null) bolt.Play();
if(sparks != null) sparks.Play();
if(pow != null) pow.Play();
}
}

View File

@@ -173,7 +173,7 @@ public class KingPlace : NetworkBehaviour
// PLACE NETWORKED VERSION
SpawnSlimeServerRPC(slimeLoc, slimeRot, slimeBodyRot, SlimeDir);
//sound here?
placeSound.Play();
if(placeSound != null) placeSound.Play();
SlimePlacing = false;
MenuOff();
@@ -275,7 +275,7 @@ public class KingPlace : NetworkBehaviour
SpawnBoxServerRPC(spawnLoc, spawnRot);
//sound here?
placeSound.Play();
if(placeSound != null) placeSound.Play();
// Remove the reference to PlaceTemp
Destroy(PlaceTemp);
@@ -289,7 +289,7 @@ public class KingPlace : NetworkBehaviour
SpawnBumperServerRPC(spawnLoc, spawnRot);
//sound here?
placeSound.Play();
if(placeSound != null) placeSound.Play();
//Remove PlaceTemp
Destroy(PlaceTemp);
@@ -407,7 +407,7 @@ public class KingPlace : NetworkBehaviour
SpawnHailServerRPC(spawnLoc);
//Sound here?
placeSound.Play();
if(placeSound != null) placeSound.Play();
Destroy(PlaceTemp);
Destroy(HailCorner);