Skip to content

Commit

Permalink
Update GameManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
NashAli authored Jul 4, 2022
1 parent b57ab5e commit 158d6de
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ public static GameManager Instance
public GameObject player, bullet, bomb;
public List<GameObject> enemies;
public float difficulty = 1;
public int _scoreValue;
private int _scoreValue;
public int Score
{
get
{
return _scoreValue;
}
}
private int cowsNumber = 0 , bullsNumber = 0;
[SerializeField]
public bool isGameActive, isPlayerAlive = false;
Expand All @@ -62,7 +69,7 @@ public static GameManager Instance
// Frequency of spawning, this will get smaller as difficulty increases.
private float spawnRate = 10.0f;
//200 meters range to start and it decrements as difficulty increases ie they get closer.
private float spawnRange = 50;
private float spawnRange = 50.0f;
private IAdaptivePerformance ap;
#region ******************* Monobehaviour ********************
private void Awake()
Expand Down

0 comments on commit 158d6de

Please sign in to comment.