Added (temporary) music and some sound effects to the game

This commit is contained in:
Gregory Campbell
2020-02-08 19:08:36 -05:00
parent 09bcf102b6
commit 374fcf2334
18 changed files with 1274 additions and 6 deletions
+2
View File
@@ -25,6 +25,7 @@ public class PlayerController : MonoBehaviour
public float rotationSpeed;
public Transform pivot;
public GameObject playerModel;
public AudioSource jumpNoise;
private bool wallRunning = false;
private bool diving = false;
@@ -252,6 +253,7 @@ public class PlayerController : MonoBehaviour
{
moveDirection.y = jumpHeight;
jump++;
jumpNoise.Play();
}
if (characterController.collisionFlags == CollisionFlags.None)