Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Placeholder music.
Browse files Browse the repository at this point in the history
  • Loading branch information
vilbeyli committed Feb 10, 2015
1 parent 0a44f21 commit 197a9b8
Show file tree
Hide file tree
Showing 23 changed files with 78 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,6 +12,7 @@
/*.userprefs
/*.pidb
/*.booproj
/Assets/Music/Stripes - Pinwheel.*

#Unity3D Generated File On Crash Reports
sysinfo.txt
5 changes: 5 additions & 0 deletions Assets/Music.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/Scenes.meta

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

Binary file added Assets/Scenes/credits.unity
Binary file not shown.
4 changes: 4 additions & 0 deletions Assets/Scenes/credits.unity.meta

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

File renamed without changes.
File renamed without changes.
Binary file renamed Assets/menu.unity → Assets/Scenes/menu.unity
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion Assets/Scripts/GUI Scripts/MenuNavigation.cs
Expand Up @@ -23,7 +23,12 @@ public void HighScores()
Application.LoadLevel("scores");

}


public void Credits()
{
Application.LoadLevel("credits");
}

public void SourceCode()
{
Application.OpenURL("https://github.com/vilbeyli/Pacman-Clone/");
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/GUI Scripts/Scores.cs
Expand Up @@ -20,9 +20,9 @@ public void UpdateGUIText(List<ScoreManager.Score> scoreList)
foreach (ScoreManager.Score sc in scoreList)
{
if (sc.score < 1000)
s += sc.score + "\t\t" + sc.name + "\n";
s += sc.score + "\t\t\t" + sc.name + "\n";
else
s += sc.score + "\t" + sc.name + "\n";
s += sc.score + "\t\t" + sc.name + "\n";
}

scores_txt.text = s;
Expand Down
5 changes: 5 additions & 0 deletions Assets/Scripts/Managers.meta

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

File renamed without changes.
42 changes: 42 additions & 0 deletions Assets/Scripts/Managers/MusicManager.cs
@@ -0,0 +1,42 @@
using UnityEngine;
using System.Collections;

public class MusicManager : MonoBehaviour {

//-------------------------------------------------------------------
// singleton implementation
private static MusicManager _instance;

public static MusicManager instance
{
get
{
if (_instance == null)
{
_instance = GameObject.FindObjectOfType<MusicManager>();
DontDestroyOnLoad(_instance.gameObject);
}

return _instance;
}
}

void Awake()
{
if (_instance == null)
{
_instance = this;
DontDestroyOnLoad(this);
}
else
{
if (this != _instance)
Destroy(gameObject);
}

}




}
8 changes: 8 additions & 0 deletions Assets/Scripts/Managers/MusicManager.cs.meta

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

File renamed without changes.
File renamed without changes.
Binary file modified ProjectSettings/EditorBuildSettings.asset
Binary file not shown.

0 comments on commit 197a9b8

Please sign in to comment.