mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-30 21:07:20 -05:00
Hopefully fixed audio issues fixed credits & title
This commit is contained in:
@@ -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);
|
||||
//
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user