Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I cant sleep
I keep making changes, time to stop for tonight and sleep.
  • Loading branch information
aps16104 committed Feb 24, 2020
1 parent bb0f5a6 commit 3a8c711
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions SpaceShooter/Assets/Scenes/Main.unity
Expand Up @@ -180,7 +180,7 @@ MonoBehaviour:
m_HorizontalOverflow: 1
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: '''Q'' - Tank (5pt)'
m_Text: '''Q'' - Tank 5 damage'
--- !u!222 &637984
CanvasRenderer:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3171,7 +3171,7 @@ MonoBehaviour:
m_HorizontalOverflow: 1
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: '''E'' - Beam (15pt)'
m_Text: '''E'' - Beam 15 damage'
--- !u!222 &1788233995
CanvasRenderer:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3328,7 +3328,7 @@ MonoBehaviour:
m_HorizontalOverflow: 1
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: '''Space'' - Light (1pt)'
m_Text: '''Space'' - Light 1 damage'
--- !u!222 &1874034111
CanvasRenderer:
m_ObjectHideFlags: 0
Expand Down
Expand Up @@ -30,21 +30,21 @@ public class DestroyByContact : MonoBehaviour

if (other.tag == "Shot" )
{
ScoreScript.scoreValue += 1;
ScoreScript.scoreValue += 3;
Destroy(other.gameObject);
Destroy(gameObject);
}

if (other.tag == "Shot_2")
{
ScoreScript.scoreValue += 1;
ScoreScript.scoreValue += 3;
Destroy(other.gameObject);
Destroy(gameObject);
}

if (other.tag == "Shot_3")
{
ScoreScript.scoreValue += 1;
ScoreScript.scoreValue += 3;
Destroy(other.gameObject);
Destroy(gameObject);
}
Expand Down
20 changes: 10 additions & 10 deletions SpaceShooter/Assets/Scripts/LevelScript.cs
Expand Up @@ -17,50 +17,50 @@ public class LevelScript : MonoBehaviour
// Update is called once per frame
void Update()
{
level.text = "Level:" + levelValue;
level.text = "Level:" + levelValue + "/10";
if (ScoreScript.scoreValue >= 100 && ScoreScript.scoreValue < 200 )
{
level.text = "Level:" + (levelValue + 1);
level.text = "Level:" + (levelValue + 1) + "/10";
}

if (ScoreScript.scoreValue >= 200 && ScoreScript.scoreValue < 300)
{
level.text = "Level:" + (levelValue + 2);
level.text = "Level:" + (levelValue + 2) + "/10";
}

if (ScoreScript.scoreValue >= 300 && ScoreScript.scoreValue < 400)
{
level.text = "Level:" + (levelValue + 3);
level.text = "Level:" + (levelValue + 3) + "/10";
}

if (ScoreScript.scoreValue >= 400 && ScoreScript.scoreValue < 500)
{
level.text = "Level:" + (levelValue + 4);
level.text = "Level:" + (levelValue + 4) + "/10";
}

if (ScoreScript.scoreValue >= 500 && ScoreScript.scoreValue < 600)
{
level.text = "Level:" + (levelValue + 5);
level.text = "Level:" + (levelValue + 5) + "/10";
}

if (ScoreScript.scoreValue >= 600 && ScoreScript.scoreValue < 700)
{
level.text = "Level:" + (levelValue + 6);
level.text = "Level:" + (levelValue + 6) + "/10";
}

if (ScoreScript.scoreValue >= 700 && ScoreScript.scoreValue < 800)
{
level.text = "Level:" + (levelValue + 7);
level.text = "Level:" + (levelValue + 7) + "/10";
}

if (ScoreScript.scoreValue >= 800 && ScoreScript.scoreValue < 900)
{
level.text = "Level:" + (levelValue + 8);
level.text = "Level:" + (levelValue + 8) + "/10";
}

if (ScoreScript.scoreValue >= 900 && ScoreScript.scoreValue < 1000)
{
level.text = "Level:" + (levelValue + 9);
level.text = "Level:" + (levelValue + 9) + "/10";
}

if (ScoreScript.scoreValue >= 1000 && ScoreScript.scoreValue < 10000000)
Expand Down

0 comments on commit 3a8c711

Please sign in to comment.