Skip to content

Commit

Permalink
Big refactor to separate out level1 concerns and switch to event system
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Lovell committed Nov 19, 2024
1 parent db7e93d commit 8770584
Show file tree
Hide file tree
Showing 42 changed files with 539 additions and 443 deletions.
39 changes: 38 additions & 1 deletion .idea/.idea.Doggo-Nogo/.idea/workspace.xml

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

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

8 changes: 8 additions & 0 deletions Assets/Resources/Prefabs.meta

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

61 changes: 61 additions & 0 deletions Assets/Resources/Prefabs/GameManager.prefab

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

7 changes: 7 additions & 0 deletions Assets/Resources/Prefabs/GameManager.prefab.meta

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

130 changes: 1 addition & 129 deletions Assets/Scenes/Simple RT.unity

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

5 changes: 2 additions & 3 deletions Assets/Scripts/Controllers/EndGame/EndGameController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class EndGameController : MonoBehaviour

private void Awake()
{
if (Instance != null)
if (Instance)
{
Destroy(gameObject);
return;
Expand All @@ -22,12 +22,11 @@ private void Awake()
private void InitializeEndGame()
{
_scoreData = new EndGameScoreData();
GameController.Instance.OnLevelComplete();
}

public float CalculatePercentileScore()
{
double threshold = GameController.Instance.GetCurrentThreshold();
double threshold = DataController.Instance.GetCurrentThreshold();
return (float)MathUtils.CalculatePercentileNormCDF(threshold);
}
}
Loading

0 comments on commit 8770584

Please sign in to comment.