-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Fixed bug where bird would not register being collided -Fixed bug where the bird can be shot from any distance -Fixed bug in level 2 where the level name is missmatched
- Loading branch information
Showing
10 changed files
with
1,885 additions
and
102 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using TMPro; | ||
using System; | ||
|
||
public class StatsCounter : MonoBehaviour | ||
{ | ||
|
||
[SerializeField] TextMeshProUGUI fpsText; | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
fpsText.enabled = false; | ||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
if(Input.GetKeyDown(KeyCode.N)) | ||
{ | ||
changeState(); | ||
} | ||
if(fpsText.enabled == true) | ||
{ | ||
fpsText.text = (1f / Time.unscaledDeltaTime).ToString(); | ||
} | ||
} | ||
|
||
void changeState() | ||
{ | ||
if(fpsText.enabled == true) | ||
{ | ||
fpsText.enabled = false; | ||
} | ||
else | ||
{ | ||
fpsText.enabled = true; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.