More changes for v1.1

This commit is contained in:
2018-04-13 08:31:41 +10:00
parent 57d4683df8
commit 28c6f8cac2
15 changed files with 54 additions and 25 deletions
+4
View File
@@ -9,13 +9,16 @@ public class GameOverController : MonoBehaviour {
public Text creditText;
public Text clickText;
public GameObject background;
public AudioClip albumOpens;
AudioSource audioSource;
Dictionary<string, GameObject> objectSet;
bool open = false;
int page = -1;
void Awake() {
audioSource = GetComponent<AudioSource> ();
objectSet = new Dictionary<string, GameObject> ();
//prune "(clone)" from each monster name
@@ -61,6 +64,7 @@ public class GameOverController : MonoBehaviour {
if (mouseX >= 0.5f && page < (objectSet.Count -1)/2) {
if (open == false) {
open = true;
audioSource.PlayOneShot (albumOpens, 1f);
//TODO: animate the background
background.GetComponent<Animator>().speed = 1;