Scoreboard implementation part 1

Get scores from server
Submit score to server
Basic scoreboard scene
This commit is contained in:
2022-04-24 13:32:15 +02:00
parent 42d5679afb
commit 84fb81e5c8
13 changed files with 4675 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ public class GameManager : MonoBehaviour
// Start is called before the first frame update
void Start()
{
//dont destroy on load
DontDestroyOnLoad(this.gameObject);
player = GameObject.FindGameObjectWithTag("Player").GetComponent<Player>();
StartWave();
@@ -111,4 +113,9 @@ public class GameManager : MonoBehaviour
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
public void OpenScoreboard()
{
SceneManager.LoadScene("Scoreboard");
}
}