Skip to content

Commit

Permalink
Fixed timer yeaaahboi
Browse files Browse the repository at this point in the history
  • Loading branch information
Stektpotet committed Dec 3, 2016
1 parent eb3b49f commit 04bcf6e
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 1 deletion.
Binary file modified Assets/Game/Materials/Clouds.mat
Binary file not shown.
Binary file modified Assets/Game/Materials/SkyLit.mat
Binary file not shown.
Binary file modified Assets/Game/Materials/Window.mat
Binary file not shown.
Binary file modified Assets/Game/Scenes/level1.unity
Binary file not shown.
Binary file modified Assets/Game/Scenes/level2.unity
Binary file not shown.
Binary file modified Assets/Game/Scenes/level3.unity
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/Game/Scripts/TimerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Reset()
public string TimeFormat(float time)
{
int m = Mathf.RoundToInt(time) / 60;
int s = (Mathf.RoundToInt(time)-m*60) - m;
int s = Mathf.RoundToInt(time)-m*60;

return m + "m " + s + "s";
}
Expand Down
1 change: 1 addition & 0 deletions Assets/StartTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class StartTimer : MonoBehaviour
public void EnableTimer()
{
GameManager.timed = true;
TimerManager.time = 0;
}
public void DisableTimer()
{
Expand Down

0 comments on commit 04bcf6e

Please sign in to comment.