Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/MrHangover/WAVES
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjeck committed Jan 22, 2017
2 parents f6e62d5 + 8f1b8ef commit 1285572
Show file tree
Hide file tree
Showing 30 changed files with 221 additions and 214 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ sysinfo.txt
# Builds
*.apk
*.unitypackage
*.meta
Assets/Sprites/Obstacle Pillar/Bricks02.png.meta
Assets/Sprites/Obstacle Pillar/Bricks02.png.meta
37 changes: 37 additions & 0 deletions Assets/RandomSoundPlayer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RandomSoundPlayer : MonoBehaviour
{
public AudioClip[] sounds;

public float minTime = 1f;
public float maxTime = 10f;

float timer = 3f;
AudioSource audio;


void Start()
{
audio = gameObject.GetComponent<AudioSource>();
}

void Update ()
{
if(timer > 0)
{
timer -= Time.deltaTime;
}
else
{
audio.clip = sounds[Random.Range(0, sounds.Length)];
audio.Play();
timer = Random.Range(minTime, maxTime);

//Debug.Log("win");
}

}
}
12 changes: 12 additions & 0 deletions Assets/RandomSoundPlayer.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/Scenes/MainMenu.unity
Binary file not shown.
Binary file added Assets/Scenes/TheLevel - Tobias.unity
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/Scenes/TheLevel - Tobias.unity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Assets/Sprites/Obstacle Pillar.meta → Assets/Sounds.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/endlessOOHHHRHHR.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/endlessOOHHHRHHR.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/oh1.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/oh1.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/oh2.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/oh2.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/oh3.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/oh3.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/oh4.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/oh4.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/oh5.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/oh5.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Sounds/shit.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Assets/Sounds/shit.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/Sprites/Level/Temple.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 0 additions & 68 deletions Assets/Sprites/Obstacle Pillar/Bricks01.png.meta

This file was deleted.

Binary file added Assets/Sprites/Obstacle Pillar/Bricks02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 0 additions & 68 deletions Assets/Sprites/Obstacle Pillar/Ground_Pillar.png.meta

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1285572

Please sign in to comment.