Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class HighScoreManager : MonoBehaviour
- {
- List<HighScores> _playerHighScores = new List<HighScores>();
- void Start()
- {
- DontDestroyOnLoad(gameObject);
- // Uusi highscore vaikkapa pelin loppuessa
- HighScores _newScore = new HighScores();
- _newScore._name = "Murgraal";
- _newScore._highScore = 9001;
- // Sitten lisää score listaan
- _playerHighScores.Add(_newScore);
- }
- }
- [System.Serializable]
- public class HighScores
- {
- public string _name;
- public int _highScore;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement