Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Commit

Permalink
tooks steps to update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyaisurm committed Jan 28, 2019
1 parent 12ab490 commit 4908c9e
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 219 deletions.
10 changes: 5 additions & 5 deletions WaveBreaker/Assets/Scripts/MenuButtonScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ void Start () {
}

// Update is called once per frame
void Update () {
if (Input.GetKey("enter")|| Input.GetKey("return"))
{
SceneManager.LoadScene("wavebreaker");
}
void Update () {
if (Input.GetKey("enter")|| Input.GetKey("return"))
{
SceneManager.LoadScene("wavebreaker");
}
}
public void handleStartButtonClick()
{
Expand Down
18 changes: 9 additions & 9 deletions WaveBreaker/Assets/Scripts/expander.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ void Start () {
life2 = GameObject.Find("life_2").GetComponent<SpriteRenderer>();
life3 = GameObject.Find("life_3").GetComponent<SpriteRenderer>();
endtextM = GameObject.Find("endtext").GetComponent<MeshRenderer>(); ;
}

// Update is called once per frame
}

// Update is called once per frame
void Update() {
float timeDelta = Time.deltaTime;
float timeDelta = Time.deltaTime;
transform.localScale += new Vector3(truespeed * timeDelta, 0, truespeed * timeDelta);

if (transform.localScale.x > 21)
{
Destroy(gameObject);
if (!waveBlaster.shield_active) {
waveBlaster.scoremultiplier = 1;
waveBlaster.multigrow = 1;
waveBlaster.updategrow = true;
if (!waveBlaster.shield_active) {
waveBlaster.scoremultiplier = 1;
waveBlaster.multigrow = 1;
waveBlaster.updategrow = true;
GameObject.Find("MultiText").GetComponent<TextMesh>().text = "x 1";

waveBlaster.lives--;
Expand All @@ -59,7 +59,7 @@ void Update() {
}
// Heittää päävalikkoon?

}
}
}
}

Expand Down
Loading

0 comments on commit 4908c9e

Please sign in to comment.