Skip to content

Commit

Permalink
Added quit button (oops!)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhorswill committed Apr 12, 2016
1 parent 576c936 commit 0404cbe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Temp/
Library/
Build/

# ================================== #
# Where the actual builds are stored #
# ================================== #
Builds/

# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
Expand Down
5 changes: 5 additions & 0 deletions Assets/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ internal void OnGUI()
Setup();
}

if (GUI.Button(new Rect(30, 250, 100, 60), "<b>Quit</b>"))
{
Application.Quit();
}

for (int i = 0; i < playerCount; i++)
{
var textposition = PlayerScreenPosition(i);
Expand Down
Binary file modified ProjectSettings/GraphicsSettings.asset
Binary file not shown.
Binary file modified ProjectSettings/ProjectSettings.asset
Binary file not shown.
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 5.3.1f1
m_EditorVersion: 5.3.2f1
m_StandardAssetsVersion: 0

0 comments on commit 0404cbe

Please sign in to comment.