Skip to content

Commit

Permalink
Alpha 2
Browse files Browse the repository at this point in the history
Changelog:
Allows the user to make their own board.
Please report any problems you have to me.
  • Loading branch information
afroraydude committed Aug 26, 2016
1 parent 7eebd2a commit 36f2ca5
Show file tree
Hide file tree
Showing 34 changed files with 500 additions and 7 deletions.
Binary file modified .vs/ScammerBingoApp/v14/.suo
Binary file not shown.
Binary file added Assets/Canvas.prefab
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/Canvas.prefab.meta

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

Binary file added Assets/GameObject.prefab
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/GameObject.prefab.meta

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

Binary file added Assets/Leve/ButtonTextChanger.unity
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/Leve/ButtonTextChanger.unity.meta

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

Binary file modified Assets/Leve/Main.unity
Binary file not shown.
41 changes: 39 additions & 2 deletions Assets/Scripts/ButtonDisabler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,41 @@
using System.Collections;
using UnityEngine.UI;
using UnityEngine.Analytics;
using System.IO;

public class ButtonDisabler : MonoBehaviour
{
public Button[] buttons = new Button[16];
public Text[] buttonText = new Text[16];
public ButtonTextHolder buttonTextHolder;
int score = 0;
// Use this for initialization
public Text scoreUI;
bool finishedNames = false;
Color defaultColor;
public int i = 0;
void Awake()
{
defaultColor = buttons[0].image.color;
}

void Start()
{
scoreUI = scoreUI.GetComponent<Text>();
defaultColor = buttons[0].image.color;


while (!finishedNames)
{
if (i < 15)
{
buttonText[i].text = buttonTextHolder.buttontexts[i];
i++;
}
else if (i == 15)
{
buttonText[i].text = buttonTextHolder.buttontexts[i];
break;
}
}
}

// Update is called once per frame
Expand All @@ -44,7 +62,24 @@ public void BtnOnClick(int id)
score--;
}
}
public void OnValueChanged(int idOfOption)
{
if (idOfOption == 1)
{
Application.Quit();

}
if (idOfOption == 2)
{
Application.LoadLevel(2);

}
if (idOfOption == 3)
{
Reset();

}
}
public void Reset()
{
/**
Expand All @@ -63,4 +98,6 @@ public void Reset()
}*/
Application.LoadLevel(0);
}


}
86 changes: 86 additions & 0 deletions Assets/Scripts/ButtonNameChanger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class ButtonNameChanger : MonoBehaviour {

public ButtonTextHolder buttonTextHolder;
public InputField[] inputField = new InputField[16];
int i = 0;
bool finishedNames = false;
// Use this for initialization
void Start () {
while (!finishedNames)
{
if (i < 15)
{
inputField[i].text = buttonTextHolder.buttontexts[i];
i++;
}
else if (i == 15)
{
inputField[i].text = buttonTextHolder.buttontexts[i];
break;
}
}
}
public void ChangeTheText()
{
i = 0;
while(!finishedNames)
{
if (i < 15)
{
buttonTextHolder.buttontexts[i] = inputField[i].text;
i++;
}
else if (i == 15)
{
buttonTextHolder.buttontexts[i] = inputField[i].text;
break;
}
}
}
// Update is called once per frame
void Update () {

}

public void OnValueChanged(int idOfOption)
{
if (idOfOption == 1)
{
Application.Quit();

}
if (idOfOption == 2)
{
Application.LoadLevel(2);

}
if (idOfOption == 3)
{
Reset();

}
}
public void Reset()
{
/**
bool resetDone = false;
int i = 0;
while (!resetDone)
{
buttons[i].enabled = true;
buttons[i].interactable = true;
i++;
if(i > 16)
{
resetDone = true;
}
}*/
Application.LoadLevel(0);
}

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

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

15 changes: 15 additions & 0 deletions Assets/Scripts/ButtonTextHolder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class ButtonTextHolder : MonoBehaviour {
public string[] buttontexts = new string[16];
// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

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

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

9 changes: 9 additions & 0 deletions Assets/Scripts/Inner.meta

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

17 changes: 17 additions & 0 deletions Assets/samplesettings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[buttontext]
0=Do One Thing
1=Wirus
2=Doublu Doublu Doublu
3=Stopped Services
4=Seure Server
5=Sir/Ma'm
6=firewall
7=One Time Charge
8=Network Security
9=Microsoft Certified
10=Level 3/5/10 technician
11=Windows + R
12=cmd
13=hh h
14=Errors and Warnings
15=Notepad
8 changes: 8 additions & 0 deletions Assets/samplesettings.txt.meta

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

2 changes: 1 addition & 1 deletion Library/AssetImportState
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25;0;131073;-1
5;0;6;-1
Binary file modified Library/EditorUserBuildSettings.asset
Binary file not shown.
Binary file modified Library/InspectorExpandedItems.asset
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
2 changes: 1 addition & 1 deletion Library/UnityAssemblies/version.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
5.3.5f1:2.2.0.0
StandaloneLinuxUniversal
StandaloneWindows
C:/Program Files/Unity/Editor/Data/Managed/UnityEngine.dll
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll
Expand Down
Binary file modified Library/assetDatabase3
Binary file not shown.
Binary file modified Library/metadata/00/00000000000000004000000000000000
Binary file not shown.
Binary file modified Library/metadata/00/00000000000000006100000000000000
Binary file not shown.
Binary file modified Library/metadata/00/0000000000000000b000000000000000
Binary file not shown.
Binary file modified Library/metadata/92/92f36686c2842f040a32f75aad248bd0
Binary file not shown.
Binary file modified Library/metadata/a0/a01205c461461e644b91ab4d42ba3475
Binary file not shown.
Binary file modified Library/metadata/d1/d1208b94d2a8bb3489ce3d898d260863
Binary file not shown.
Loading

0 comments on commit 36f2ca5

Please sign in to comment.