예제 #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();
 }