示例#1
0
 public void Update()
 {
     scoresText.text = ScoresScript.Read();
 }
示例#2
0
 public void ExitScene()
 {
     ScoresScript.Write(InputFieldScript.playerName, ScoreKeeper.newScore);
     SceneManager.LoadScene("4Exit");
 }
示例#3
0
文件: Hitable.cs 项目: Zbyl/SGJGame
 // Use this for initialization
 void Awake()
 {
     scores = GameObject.FindGameObjectWithTag("Scores").GetComponent <ScoresScript>();
 }
示例#4
0
 // 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.
 }
示例#5
0
 private void Update()
 {
     score.text      = (InputFieldScript.playerName + ", " + ScoreKeeper.newScore.ToString());
     highScores.text = ScoresScript.Read();
 }