diff --git a/Assets/Sounds.meta b/Assets/Sounds.meta new file mode 100644 index 0000000..a66c01f --- /dev/null +++ b/Assets/Sounds.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1a1fddcb1f592f24681f0652123f44ab +folderAsset: yes +timeCreated: 1454198769 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/BackgroundMusic.cs b/Assets/Sounds/BackgroundMusic.cs new file mode 100644 index 0000000..82f514f --- /dev/null +++ b/Assets/Sounds/BackgroundMusic.cs @@ -0,0 +1,37 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; + +public class BackgroundMusic : MonoBehaviour { + public AudioClip[] mClips; + int currSong; + int nextSong; + // Use this for initialization + void Start () { + currSong = 0; + GetComponent ().clip = mClips [currSong]; + GetComponent ().Play (); + } + + // Update is called once per frame + void Update () { + AudioSource audio = GetComponent (); + if (Input.GetKeyDown (KeyCode.Minus)) { + audio.Stop (); + nextSong = -1; + } + if (Input.GetKeyDown (KeyCode.Equals)) { + audio.Stop (); + nextSong = 1; + } + if (!audio.isPlaying) { + currSong += nextSong; + if (currSong == mClips.Length - 1) + currSong = 0; + if (currSong < 0) + currSong = mClips.Length - 1; + audio.clip = mClips [currSong]; + audio.Play (); + } + } +} diff --git a/Assets/Sounds/BackgroundMusic.cs.meta b/Assets/Sounds/BackgroundMusic.cs.meta new file mode 100644 index 0000000..d1751f8 --- /dev/null +++ b/Assets/Sounds/BackgroundMusic.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d06988e0a5c83b04099f727bb4bc655c +timeCreated: 1454208549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/BackgroundMusic.prefab b/Assets/Sounds/BackgroundMusic.prefab new file mode 100644 index 0000000..42db6df Binary files /dev/null and b/Assets/Sounds/BackgroundMusic.prefab differ diff --git a/Assets/Sounds/BackgroundMusic.prefab.meta b/Assets/Sounds/BackgroundMusic.prefab.meta new file mode 100644 index 0000000..70307ed --- /dev/null +++ b/Assets/Sounds/BackgroundMusic.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3cf1967180430cb4fbf45d0ad0efaea6 +timeCreated: 1454208513 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/ESPARK1.mp3 b/Assets/Sounds/ESPARK1.mp3 new file mode 100644 index 0000000..71184b0 Binary files /dev/null and b/Assets/Sounds/ESPARK1.mp3 differ diff --git a/Assets/Sounds/ESPARK1.mp3.meta b/Assets/Sounds/ESPARK1.mp3.meta new file mode 100644 index 0000000..dfba742 --- /dev/null +++ b/Assets/Sounds/ESPARK1.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 29d824f2d96a75c4db12e04095b1dace +timeCreated: 1454209490 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/New Prefab.prefab b/Assets/Sounds/New Prefab.prefab new file mode 100644 index 0000000..da73207 Binary files /dev/null and b/Assets/Sounds/New Prefab.prefab differ diff --git a/Assets/Sounds/New Prefab.prefab.meta b/Assets/Sounds/New Prefab.prefab.meta new file mode 100644 index 0000000..b5502fb --- /dev/null +++ b/Assets/Sounds/New Prefab.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 29031dbf93e7d904c80614eeca3b24d8 +timeCreated: 1454201048 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/NewAudioMixer.mixer b/Assets/Sounds/NewAudioMixer.mixer new file mode 100644 index 0000000..34ce66f Binary files /dev/null and b/Assets/Sounds/NewAudioMixer.mixer differ diff --git a/Assets/Sounds/NewAudioMixer.mixer.meta b/Assets/Sounds/NewAudioMixer.mixer.meta new file mode 100644 index 0000000..bb321df --- /dev/null +++ b/Assets/Sounds/NewAudioMixer.mixer.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 217dc611389075a4e8c3e1aead8871e9 +timeCreated: 1454198781 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/activity.mp3 b/Assets/Sounds/activity.mp3 new file mode 100644 index 0000000..d765f12 Binary files /dev/null and b/Assets/Sounds/activity.mp3 differ diff --git a/Assets/Sounds/activity.mp3.meta b/Assets/Sounds/activity.mp3.meta new file mode 100644 index 0000000..6425d32 --- /dev/null +++ b/Assets/Sounds/activity.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: ae102d0e06987c3408292fd7eaac7018 +timeCreated: 1454209521 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/brain hacker.mp3 b/Assets/Sounds/brain hacker.mp3 new file mode 100644 index 0000000..05f5e8b Binary files /dev/null and b/Assets/Sounds/brain hacker.mp3 differ diff --git a/Assets/Sounds/brain hacker.mp3.meta b/Assets/Sounds/brain hacker.mp3.meta new file mode 100644 index 0000000..de10678 --- /dev/null +++ b/Assets/Sounds/brain hacker.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 901b233f07e78f74fb2a0f8744c0b7a8 +timeCreated: 1454209502 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/earcing.mp3 b/Assets/Sounds/earcing.mp3 new file mode 100644 index 0000000..136e44f Binary files /dev/null and b/Assets/Sounds/earcing.mp3 differ diff --git a/Assets/Sounds/earcing.mp3.meta b/Assets/Sounds/earcing.mp3.meta new file mode 100644 index 0000000..0a9b516 --- /dev/null +++ b/Assets/Sounds/earcing.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 4838efc262cb6484e9b98fc5b63c7d24 +timeCreated: 1454199153 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 1 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/electricguitar.mp3 b/Assets/Sounds/electricguitar.mp3 new file mode 100644 index 0000000..1b8f3a0 Binary files /dev/null and b/Assets/Sounds/electricguitar.mp3 differ diff --git a/Assets/Sounds/electricguitar.mp3.meta b/Assets/Sounds/electricguitar.mp3.meta new file mode 100644 index 0000000..d303f51 --- /dev/null +++ b/Assets/Sounds/electricguitar.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 484722fafeeaee84c881efed180b7266 +timeCreated: 1454209490 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/electricshock.mp3 b/Assets/Sounds/electricshock.mp3 new file mode 100644 index 0000000..12b55b9 Binary files /dev/null and b/Assets/Sounds/electricshock.mp3 differ diff --git a/Assets/Sounds/electricshock.mp3.meta b/Assets/Sounds/electricshock.mp3.meta new file mode 100644 index 0000000..b452a06 --- /dev/null +++ b/Assets/Sounds/electricshock.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 7d9d19d95a8b92742b5abab2b6713f11 +timeCreated: 1454209496 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/evil my friend.mp3 b/Assets/Sounds/evil my friend.mp3 new file mode 100644 index 0000000..13bdce1 Binary files /dev/null and b/Assets/Sounds/evil my friend.mp3 differ diff --git a/Assets/Sounds/evil my friend.mp3.meta b/Assets/Sounds/evil my friend.mp3.meta new file mode 100644 index 0000000..87a2292 --- /dev/null +++ b/Assets/Sounds/evil my friend.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: aa359037b64e72949af464aaacbbefa3 +timeCreated: 1454209514 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/memorization.mp3 b/Assets/Sounds/memorization.mp3 new file mode 100644 index 0000000..ed89c53 Binary files /dev/null and b/Assets/Sounds/memorization.mp3 differ diff --git a/Assets/Sounds/memorization.mp3.meta b/Assets/Sounds/memorization.mp3.meta new file mode 100644 index 0000000..40df2d7 --- /dev/null +++ b/Assets/Sounds/memorization.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 53d1bc705d795f046b348a2ab69fe3bc +timeCreated: 1454209496 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/soundTest.cs b/Assets/Sounds/soundTest.cs new file mode 100644 index 0000000..bc7ea4e --- /dev/null +++ b/Assets/Sounds/soundTest.cs @@ -0,0 +1,19 @@ +using UnityEngine; +using System.Collections; + +public class soundTest : MonoBehaviour { + public AudioClip mClip; + int playing = 0; + + // Use this for initialization + void Start () { + + } + + // Update is called once per frame + void Update () { + if ((GameObject.Find ("Player").transform.position - transform.position).magnitude < 1.0) { + AudioSource.PlayClipAtPoint (mClip, transform.position, 1.0f); + } + } +} diff --git a/Assets/Sounds/soundTest.cs.meta b/Assets/Sounds/soundTest.cs.meta new file mode 100644 index 0000000..3f6f7a1 --- /dev/null +++ b/Assets/Sounds/soundTest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdb301d991e2ec64fb4b7aaddaf89f3f +timeCreated: 1454199574 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sounds/unborn.mp3 b/Assets/Sounds/unborn.mp3 new file mode 100644 index 0000000..f151f3a Binary files /dev/null and b/Assets/Sounds/unborn.mp3 differ diff --git a/Assets/Sounds/unborn.mp3.meta b/Assets/Sounds/unborn.mp3.meta new file mode 100644 index 0000000..f302d0e --- /dev/null +++ b/Assets/Sounds/unborn.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 0202d5f4375c1c24d8369a29dc7521ea +timeCreated: 1454209489 +licenseType: Free +AudioImporter: + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: