public void Update() { scoresText.text = ScoresScript.Read(); }
public void ExitScene() { ScoresScript.Write(InputFieldScript.playerName, ScoreKeeper.newScore); SceneManager.LoadScene("4Exit"); }
// Use this for initialization void Awake() { scores = GameObject.FindGameObjectWithTag("Scores").GetComponent <ScoresScript>(); }
// Use this for initialization new void Start() { base.Start(); scores = GameObject.FindGameObjectWithTag("Scores").GetComponent <ScoresScript>(); currentWeapon = (Weapons.WeaponKind)Random.Range(1, 4); // AI and bugs don't allow for Knives. }
private void Update() { score.text = (InputFieldScript.playerName + ", " + ScoreKeeper.newScore.ToString()); highScores.text = ScoresScript.Read(); }